View Single Post
  #6 (permalink)  
Old 11-06-2008, 05:56 PM
imvain2 imvain2 is offline
WebProWorld Veteran
 
Join Date: Apr 2004
Posts: 349
imvain2 RepRank 1
Default Re: Permissions for Picture Folder.

for the picture accessing on apache..

you can create a .htaccess file and store it in the root directory of your website.

Code:
RewriteEngine On
RewriteCond %{HTTP_REFERER} !^http://(.+\.)?mysite\.com/ [NC]
RewriteCond %{HTTP_REFERER} !^$
RewriteRule .*\.(jpe?g|gif|bmp|png)$ /images/nohotlink.jpe [L]
Stop Hotlinking with htaccess. Test your Image Hotlink Protection with our Hotlink Checker from altlab.com.

plus as ran_dizolph pointed out, create an index.php file and drop it into your image folder. Have index.php redirect users to the home page.

--------------------------------------------------------------

As for uploading bad files, this is a different issue all together.
Reply With Quote