hotlinking – blocking access to outside direct links

in apache you can control access to certain files on certain directories by having the following lines in your .htaccess file:

#denies access to all but the allowed IP (presumably yours)
#all other users will be redirected to the ErrorDocument
ErrorDocument 403 http://www.domain.com/errorpage.php
Order deny,allow
Deny from all
Allow from 76.117.227.192

Leave a Reply

Your email address will not be published. Required fields are marked *