- Joined
- Jul 21, 2004
- Messages
- 2,192
For some reason I cannot get this code to work, all I get is a HTTP 500 Internal Server error on Apache 2.0.52 with PHP 5.0.3 installed.
Here is the code
Anyone know why this particular .htaccess code doesn't work. I've tried many variants and I get the same exact problem until I remove the .htaccess file completely...
Here is the code
Code:
Options +FollowSymlinks
# Anti-Hotlinking
RewriteEngine On
RewriteCond %{HTTP_REFERER} !^$
RewriteCond %{HTTP_REFERER} !^http://(www\.)?somesite\.net/ [NC]
RewriteCond %{HTTP_REFERER} !^http://(www\.)?somesite2\.com/ [NC]
RewriteRule .*\.(gif|jpg|jpeg|bmp)$ - [F]
Anyone know why this particular .htaccess code doesn't work. I've tried many variants and I get the same exact problem until I remove the .htaccess file completely...