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:

  1. Showing files in a directory If you want to list all files in a directory...
  2. cgi files generate Internal Server Error This means that the cgi script did not execute properly....
  3. 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.

:, , , ,
No comments for this entry yet...

Leave a Reply

Looking for something?

Use the form below to search the site:

Still not finding what you're looking for? Drop a comment on a post or contact us so we can take care of it!

Kontak

Budhi Indah A 31
Cimindi Cimahi 40514
West Java
Indonesia

Phone/SMS :
Info/Bantuan : 62-8158-6270622
Billing/konfirmasi : 62-8888-763551

Self Advertise


My site is worth $7548.2.
How much is yours worth?