Hotlink protection: How-To prevent people from stealing your files
by admin on Jan.20, 2012, under DirectAdmin
Create an .htaccess file in your public_html directory with the following code:
RewriteEngine on
RewriteCond %{HTTP_REFERER} !^$
RewriteCond %{HTTP_REFERER} !^http://(www.)?domain.com.*$ [NC]
RewriteRule .(gif|jpg)$ – [F]
Where domain.com is your domain.
Related posts:
- Showing files in a directory If you want to list all files in a directory...
- cgi files generate Internal Server Error This means that the cgi script did not execute properly....
- Running CGI script from any directory or via /~username/cgi-bin In order to force apache to allow cgi script to...
Related posts brought to you by Yet Another Related Posts Plugin.
