[PerlChina] 用modperl设置Apache的防盗链

Jeff Pang pangj at earthlink.net
Tue Jan 8 00:15:44 PST 2008



-----Original Message-----
>From: Fayland Lam <fayland at gmail.com>
>Sent: Jan 8, 2008 4:06 PM
>To: Jeff Pang <pangj at earthlink.net>, china-pm at pm.org
>Subject: Re: [PerlChina] 用modperl设置Apache的防盗链
>
>Jeff Pang wrote:
>> 在Chinaunix发了一篇文档,介绍modperl的一个基础应用(AccessHandler的应用),欢迎阅读和建议,:)
>>
>> http://bbs.chinaunix.net/thread-1039570-1-1.html
>>   
>
>nice. 也可以用
>
>$r->uri('/file/file_not_found.html');
>return Apache2::Const::DECLINED;
>
>来跳转到一个新的地址。
>

Hello Fayland,

探讨下,这里是否明确用return Apache2::Const::FORBIDDEN比较好?
如果我没记错的话,AccessHandler是run all类型,如果返回DECLINED的话,下一个处理器还会接着处理,从而违背了应该拒绝访问的本意.


More information about the China-pm mailing list