I've been trying to get this .htaccess script to work...
But no matter what i do (i've tried 8 variations), i get a forbidden error when accessing any file in the folder containing the script. Whether it be, gif, jpg, html, or php.
Rewriteengine on
RewriteCond %{HTTP_REFERER} !^$
RewriteCond %{HTTP_REFERER} !^http://your_domain.com/.*$ [NC]
RewriteCond %{HTTP_REFERER} !^http://www.your_domain.com/.*$ [NC]
RewriteCond %{HTTP_REFERER} !^http://www.trusted.com/.*$ [NC]
RewriteRule .*\.(gif|GIF|jpg|JPG)$ - [F]
Obviously with all the relevant details for my site instead of what's there...
What's the problem? I can't figure it out
I made sure to upload the .htaccess file in ASCII and all.
But no matter what i do (i've tried 8 variations), i get a forbidden error when accessing any file in the folder containing the script. Whether it be, gif, jpg, html, or php.
Rewriteengine on
RewriteCond %{HTTP_REFERER} !^$
RewriteCond %{HTTP_REFERER} !^http://your_domain.com/.*$ [NC]
RewriteCond %{HTTP_REFERER} !^http://www.your_domain.com/.*$ [NC]
RewriteCond %{HTTP_REFERER} !^http://www.trusted.com/.*$ [NC]
RewriteRule .*\.(gif|GIF|jpg|JPG)$ - [F]
Obviously with all the relevant details for my site instead of what's there...
What's the problem? I can't figure it out
I made sure to upload the .htaccess file in ASCII and all.


Comment