|
Posted by Jonathan N. Little on 05/27/06 18:42
Nospam wrote:
> If I wanted to perform a redirect with htaccess to a perl script, how would
> I perform this, would an example like this suffice:
>
> RewriteEngine On
> RewriteCond %{HTTP_REFERER} !^http://.*example.com*$ [NC]
> RewriteRule .*\.(jpg|JPG)$ /path/to/perlscript.pl
> [T=application/x-httpd-cgi,R]
>
>
You may not want to do this any more with the advent of firewalls like
Norton's that block the HTTP_REFERER! Noticed in my 404 script. I would
use HTTP_REFERER to determine if there was a bad link on my site, or an
obsolete link on someone else site, or if it was direct from a typed
address or bookmark. My logs are showing about 10% blocked and rising
--
Take care,
Jonathan
-------------------
LITTLE WORKS STUDIO
http://www.LittleWorksStudio.com
[Back to original message]
|