Prevent Image Hotlinking

1 Star2 Stars3 Stars4 Stars5 Stars (1 votes, average: 4.00 out of 5)
Loading ... Loading ...

Append “No Hotlinking” Code to the.htaccess File

Protect your bandwidth whenever possible. By adding a few lines of code to your root level .htaccess file you can prevent external websites from directly loading your images, audio, and video files.

Add the following code to your .htaccess file:

RewriteEngine on
RewriteCond %{HTTP_REFERER} ^$
RewriteCond %{HTTP_REFERER} ^http://www.?your-domain.com/.$ [NC]
RewriteRule \.gif|jpe?g|png|mov|avi|wmv|mpe?g$ - [F]

[AaronHalford.com]

  These icons link to social bookmarking sites where readers can share and discover new web pages.
  • del.icio.us
  • Digg
  • Facebook
  • Fark
  • Fleck
  • Furl
  • Reddit
  • Spurl
  • StumbleUpon
  • Technorati
  • MySpace
  • Pownce

Comments

Leave a Reply

You must be logged in to post a comment.