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

Fayland Lam fayland at gmail.com
Tue Jan 8 00:24:09 PST 2008


Jeff Pang wrote:
> -----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的话,下一个处理器还会接着处理,从而违背了应该拒绝访问的本意.
>   

u are correct. I'm wrong here. 其实我的例子是在自己的代码里在 
PerlTransHandler (maybe PerlMapToStorageHandler), Sorry.


> _______________________________________________
> China-pm mailing list
> China-pm at pm.org
> http://mail.pm.org/mailman/listinfo/china-pm


-- 
Fayland Lam // http://www.fayland.org/ 




More information about the China-pm mailing list