Slamdot

  • Home
  • Tour
  • Buzz
  • Blog
  • Help
  • Pricing & Sign-up

Back to: Slamdot Help → Advanced → How do I setup hotlink protection to prevent people from stealing my images?

How do I setup hotlink protection to prevent people from stealing my images?

Posted by Daniel on August 1, 2007

Hotlinking, or Direct Linking, is a method of linking to someone else's server/website to display their images and other files. This equates to stealing bandwidth from others on the Internet. One way to prevent others from doing this to your images is by setting up a .htaccess file for hotlink protection.

To setup hotlink protection, simply create a .htaccess file in your public_html directory with the following code:

RewriteEngine on
RewriteCond %{HTTP_REFERER} !^$
RewriteCond %{HTTP_REFERER} !^http://(www.)?yourdomain.com.*$ [NC]
RewriteRule .(gif|jpg)$ - [F]

Tags: hotlink protection .htaccess

Rating: (None)

  • Email
  • Print
  • Add Comment
How helpful was this article to you?

Related Articles

  • How do I setup my database with scripts?

    Most scripts need to know four things about your database: the database name, database username, password, and hostname. Database Name The...

    (No rating) April 22, 2006 Views: 861

  • How do I setup SMTP Authentication for use with my Slamdot hosting account?

    When setting up POP3 accounts in your email software, you will need to enable SMTP authentication if you choose to use your hosting account for...

    (No rating) April 22, 2006 Views: 1106

Comments so far ↓

  • There are no comments yet...Kick things off by adding a comment →

Got more questions? Got feature requests?

Please contact us and we'll get back to you shortly.

Search this site

Categories

  • Advanced
  • Domain Registration
  • Email
  • Files
  • Getting Started
  • Plan
  • Ruby on Rails
  • Scripts
  • Uploading to Your Site
  • Website

Copyright © 2008 Slamdot, Inc. All rights reserved.

  • Terms of Service
  • Acceptable Use Policy
  • Privacy Policy
  • Contact Us