Need htaccess help!
Posted by: mbif
Posted on: 2006-01-17 18:27:00
I'm trying to block one specific webpage from hotlinking something from my site. I don't want to block anything else, just this one guy. I've done it with other pages, but unfortunately, something is throwing a wrench into the works -- the URL (EXAMPLE.com/EXAMPLE.phtml?user=EXAMPLE) contains a question mark, and it's causing my entire site to crash when I upload the modified .htaccess
Is there any way I can get this to work?
RewriteEngine On
RewriteCond %{HTTP_REFERER} ^http://(www.)?EXAMPLE.com/EXAMPLE.phtml?user=EXAMPLE*$ [NC,OR]
RewriteCond %{HTTP_REFERER} ^http://(www.)?EXAMPLE.com/EXAMPLE.phtml?user=EXAMPLE*$ [NC]
RewriteRule .(jpg|jpeg|gif|png|bmp)$ http://www.MYSITEHERE.net/images/nohotlink.gif [R,L]