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
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.
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
Summary: He (onedollarhost.net) just sent me an email saying "We do not have .htaccess." According to a server.cgi I ran their system is: Operating System Linux 2.4.18-5 Web Server Software Apache/1.3.22 ...
Summary: I been having problems trying to configure this on my linux redhat 7.0 box, can somebody give me a hand, this is what I have done: 1) create the file .htaccess Require valid-user AuthType Basic Auth...