Quote:
Originally Posted by Tradjick
Simply create an .htaccess file in the folder(s) you want to protect with the following content:
RewriteEngine on
RewriteCond %{HTTP_REFERER} !^$
RewriteCond %{HTTP_REFERER} !^http://(www\.)?www.(/)?.*$ [NC]
RewriteRule .*\.(avi|bmp|gif|jpeg|jpg|midi|mp3|mpeg|mpg|png|ra m|wav|wma|wmv)$ [F,NC]
This should prevent from anyone linking from the outside of your domain to your files.
|
Isn't the fetching of uploaded images on a forum a server side PHP function from attachment.php ?
will this prevent people from having the php fetch them an image uploaded to a forum?
obviously we can't prevent hotlinking to php or we would never get referred visitors, I just want to stop people leeching my jpg car images.