Urgent Help Needed " Bandwidth Stolen"

Discussion in 'Site & Server Administration' started by techjunkiez, Feb 28, 2008.

  1. #1
    I recently saw a extreme boost in the bandwidth usage of my blog but the visitor count has not boosted.i am suspecting that a visitor of my blog has linked some image files from my server to his site which has caused this.how can i prevent my bandwidth from being stolen
     
    techjunkiez, Feb 28, 2008 IP
  2. norfstar

    norfstar Peon

    Messages:
    1,154
    Likes Received:
    62
    Best Answers:
    0
    Trophy Points:
    0
    #2
    If your hosting supports .htaccess (if it is Linux it probably does), put this in your .htaccess file:

    RewriteEngine On
    RewriteCond %{HTTP_REFERER} !^http://(.+\.)?mydomain\.com/ [NC]
    RewriteCond %{HTTP_REFERER} !^$
    RewriteRule .*\.(jpg|gif|bmp|png)$ http://www.another-site-of-yours-that-is-not-protected.com/images/bitemyshinymetalass.gif [L]
    Code (markup):
    Replacing mydomain.com with your domain and the image URL specified with something that the perpetrator won't want displayed on their site.
     
    norfstar, Feb 28, 2008 IP
  3. techjunkiez

    techjunkiez Banned

    Messages:
    115
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Yes ,its a linux cpanel 11 hosting.i am using worpress and i upload all images to default upload folder.i will try your come and see if it works
     
    techjunkiez, Feb 28, 2008 IP
  4. maestria

    maestria Well-Known Member

    Messages:
    705
    Likes Received:
    8
    Best Answers:
    0
    Trophy Points:
    110
    #4
    Follow the steps to prevent the hotlinking from your domain. That should stop the issue.
     
    maestria, Mar 1, 2008 IP