How to block stealing image?

Stealing image is theift action, but seems not many people know that. And I should say it is not always the people’s fault. Since when we get to use the internet, link image and insert image link is a very popular method. But this action causes so many troubles to those web hoster. BECAUSE it took so much of our bandwidth!!!

MP3, Images, document files, zip files, all of those which are uploaded to the website have been directly linked to the other website. That seriously affect the host website’s performance, assuming this is not a image/file host site. The bandwith causes lots lots of money. Hey, that is why AT&T, Comcast or Verizon will charge different rate based on the bandwidth you are using.

So, please please do not hotlinked to our image, otherwise you will get this.

noaccess

If your website is having the same problem, here is the solution.

Please change your .htaccess file, it is a hidden file. So you may want to change your view first to get that file.

Add this line in your .htaccess file

RewriteCond %{HTTP_REFERER} !^http://.*”Your Domain”/.*$ [NC]

RewriteRule .*\.(gif|jpg|wmv|avi|bmp|jpeg|png|mp3|zip)$ http://farm4.static.flickr.com/3195/2902… [R,NC,L]

at the very beginning, right after

RewriteEngine On
RewriteBase /

For wpmu or wordpress user, please change your .htaccess file at the root

add the same place of the file with the below line

RewriteCond %{HTTP_REFERER} !^http://.*”Your Domain”/.*$ [NC]

RewriteRule ^(.*/)?files/.(gif|jpg|wmv|avi|bmp|jpeg|png|mp3|zip)$ http://farm4.static.flickr.com/3195/2902… [R,NC,L]

BTW: The image is what I am using on this site. Please feel free to change to any other file which has public access, meaning free hotlink image.

P.S. just replace “Your Domain” to your registered domain name. ” is not included.

Rating: 7.3/10 (6 votes cast)

Related posts:

  1. Wordpress export problem, solution and instruction As you may aware, when your xml size is over...
  2. Arbitrary File Upload Vulnerability in WordPress and WordPress MU Article original from http://www.buayacorp.com/files/wordpress/wordpress-advisory.html I just copy here to the...
  3. Search for Bourne - Day 8 I think today's riddle is a little hard. I do...
  4. Gravatar is supported! Tattertools plugin of Gravatar Gravatar is supported by my site!You don't know what Gravatar...
  5. Fredericksburg Trip ...

2 Responses to “How to block stealing image?”

  1. 2
    eric Says:
    October 17th, 2008 at 2:03 am

    @Abby Bob -
    Or you can just go to flickr to open an account.

    Rating: 3.6/5 (5 votes cast)
  2. 1
    Abby Bob Says:
    October 16th, 2008 at 1:22 am

    Yes, hotlingk is sometimes stealing… but not always - We provide free images that people can hotlink legally at acobox.com. Have a look at it and you will find it definitely helpful to all bloggers.

    Rating: 0.0/5 (0 votes cast)

Leave a Reply

Preview:

Tags:
Separate individual tags by commas