Thread: .htaccess
View Single Post
Old 2003-10-05, 05:24 AM   #1
Tino
Are you sure you're an accredited and honored pornographer?
 
Join Date: Sep 2003
Posts: 61
Send a message via ICQ to Tino
.htaccess

I have a .htaccess file set up to prevent hotlinking from certain domains. At first I set it up to disallow from only 1 domain(mysmutsearch) and it worked fine:

Options +FollowSymlinks
RewriteEngine on
RewriteCond %{HTTP_REFERER} ^http://(www\.)?mysmutsearch.com(/)?.*$ [NC]
RewriteRule .*\.(gif|jpg|jpeg|bmp)$ http://neighbourhoodgirls.com/ggg.jpg [R,NC]

But when I add more domains to the list, it dont work anymore. Not even the domain that I blocked in first code.

Options +FollowSymlinks
RewriteEngine on
RewriteCond %{HTTP_REFERER} ^http://(www\.)?mysmutsearch.com(/)?.*$ [NC]
RewriteCond %{HTTP_REFERER} ^http://(www\.)?fusker.com(/)?.*$ [NC]
RewriteCond %{HTTP_REFERER} ^http://(www\.)?chatropolis.com(/)?.*$ [NC]
RewriteRule .*\.(gif|jpg|jpeg|bmp)$ http://neighbourhoodgirls.com/ggg.jpg [R,NC]

Anyone know what im doing wrong?
__________________
Neighbourhoodgirls

Tino is offline   Reply With Quote