httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From luis medrano <>
Subject [users@httpd] Disable Hot-linking Files
Date Mon, 23 Apr 2012 18:42:18 GMT

I'm using the following lines on my .htaccess:

RewriteCond %{HTTP_REFERER} !^http://(www\.)?*$ [NC]
RewriteRule .*\.(gif|jpg|jpeg|bmp|txt|pdf)$ - [F,NC]

I'm using this lines to avoid links to a files from external websites
but how can I redirect that traffic to the index of the website or any
other page?

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message