Computing.Net > Forums > Linux > Apache - Anti-Leech - .htaccess

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

Apache - Anti-Leech - .htaccess

Reply to Message Icon

Name: David
Date: December 4, 2003 at 08:45:43 Pacific
OS: NA
CPU/Ram: NA
Comment:

I found a website that says if I insert the following code into .htaccess it will prevent image leeching. I found the same code on about 50 different sites. So it obviously works for some people. But not for me. I am wondering. Was there something in here that is wrong?
# represents where the file starts and stops.
########################################################
RewriteEngine on
RewriteCond %{HTTP_REFERER} !^$
RewriteCond %{HTTP_REFERER} !^http://senecac.mine.nu/.*$ [NC]
RewriteCond %{HTTP_REFERER} !^http://senecac.mine.nu.*$ [NC]
RewriteRule \.(gif|jpg)$ http://senecac.mine.nu/leech.gif [R,L]
########################################################
In the httpd.conf file I set AllowOverride all.

Thanks
David



Sponsored Link
Ads by Google

Response Number 1
Name: David
Date: December 4, 2003 at 09:00:32 Pacific
Reply:

You must edit the httpd.conf file
<Directory /serverroot>
Options Indexes Includes FollowSymLinks
AllowOverride all
order deny,allow
deny from all
allow from all
</Directory>

Make sure FollowSymLinks is on the line with Options
and AllowOverride All

David


0
Reply to Message Icon

Related Posts

See More







Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Linux Forum Home


Sponsored links

Ads by Google


Results for: Apache - Anti-Leech - .htaccess

mod_rewrite - apache-image leeching www.computing.net/answers/linux/modrewrite-apacheimage-leeching/13840.html

htaccess popup won't popup www.computing.net/answers/linux/htaccess-popup-wont-popup/15674.html

.htaccess www.computing.net/answers/linux/htaccess/5818.html