Results 1 to 4 of 4

Trying to block some bandwidth leeches

This is a discussion on Trying to block some bandwidth leeches within the General Discussion forums, part of the vBSEO SEO Plugin category; I'm trying to block a few sites that are simply killing my bandwidth and redirect all there references to my ...

  1. #1
    Senior Member
    Real Name
    dave
    Join Date
    Jun 2006
    Posts
    348
    Liked
    0 times
    Blog Entries
    1

    Trying to block some bandwidth leeches

    I'm trying to block a few sites that are simply killing my bandwidth and redirect all there references to my images to another one..It doesnt even have to redirect to that image, as long as its blocking my images from loading on their site i'll be happy.

    I tried searching for the code to add to .htaccess for this, but it failed every time.

    Any help is appreciated.

  2. #2
    Senior Member
    Real Name
    Nick Le Mouton
    Join Date
    Nov 2005
    Location
    New Zealand
    Posts
    422
    Liked
    14 times
    Try this: Anti-leech using Apache's .htaccess (i assume you're running apache on linux)

  3. #3
    Senior Member
    Real Name
    dave
    Join Date
    Jun 2006
    Posts
    348
    Liked
    0 times
    Blog Entries
    1
    thanks, will check this one out to

  4. #4
    Junior Member
    Real Name
    -RL-
    Join Date
    Feb 2006
    Location
    Norway
    Posts
    28
    Liked
    1 times
    I use this one, and it works fine:

    Code:
    RewriteEngine on
    RewriteCond %{HTTP_REFERER} !^$
    RewriteCond %{HTTP_REFERER} !^http://babelfish.altavista.com/.*$      [NC]
    RewriteCond %{HTTP_REFERER} !^http://babelfish.altavista.com$      [NC]
    RewriteCond %{HTTP_REFERER} !^http://translate.google.com/.*$      [NC]
    RewriteCond %{HTTP_REFERER} !^http://translate.google.com$      [NC]
    RewriteCond %{HTTP_REFERER} !^http://www.yoursite.com/.*$      [NC]
    RewriteCond %{HTTP_REFERER} !^http://www.yoursite.com$      [NC]
    RewriteRule .*\.(jpg|jpeg|gif|png|bmp|swf|mpg)$ http://www.yoursite.com/no.jpe [R,NC]
    If someone tries to hotlink jpg|jpeg|gif|png|bmp|swf|mpg they'll be given the no.jpe image instead..
    (make a .jpg image and rename it to .jpe)

    You can add any site/IP you want to allow to display the images to the list above.

    I just use a small white image with the text "Don't steal, ask instead! www.yoursite.com ", but you could change it to anything you like, just use your imagination..

Similar Threads

  1. Block Search engines?
    By 1QuickSI in forum Pre-Sales Questions
    Replies: 1
    Last Post: 06-22-2006, 07:01 PM
  2. excluding block from rel nofollow
    By Noodles in forum General Discussion
    Replies: 5
    Last Post: 02-15-2006, 04:39 PM
  3. off topic forums - block from guest/spider view?
    By Mike in forum General Discussion
    Replies: 1
    Last Post: 02-04-2006, 11:05 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •