Welcome to the JaguarPC Community
JaguarPC
Sales: (888) 338-5261
Support: (888)-551-3050
Results 1 to 13 of 13

This is a discussion on Blocking a Bandwidth Thief in the Shared & Semi-Dedicated forum
These folks have grabbed a Gig and half from me this month. I thought I'd blocked them months ago but they've managed to return. host18.bayshoresoftware.com ...

  1. #1
    JPC Addict richardevanslee's Avatar
    Join Date
    Feb 2003
    Location
    Durham, NC
    Posts
    104

    Blocking a Bandwidth Thief

    These folks have grabbed a Gig and half from me this month. I thought I'd blocked them months ago but they've managed to return.

    host18.bayshoresoftware.com

    I did a whois and blocked the listed IP for bayshoresoftware.com some time back but that has stopped working.

    Any suggestions?

    Thanks,
    Richard

  2. #2
    Ron
    Ron is offline
    Loyal Client
    Join Date
    Aug 2002
    Posts
    7,307
    The IP addy should be in your Apache logs, shouldn't it?

  3. #3
    Yeah, I know a LOT! Vin DSL's Avatar
    Join Date
    Mar 2003
    Location
    Arizona Uplands
    Posts
    10,775
    Try putting this in your .htaccess file...
    Code:
    RewriteCond %{HTTP_REFERER} (bayshoresoftware.com) [NC]
    RewriteRule ^(.*) %{HTTP_REFERER} [R=301,L]
    DISCLAIMER Any resemblance between the views expressed above and those of the owners and operators of this system is purely coincidental. Any resemblance between these views and my own are non-deterministic. The existence of Vin DSL is questionable. The existence of views in the absence of anyone to hold them is problematic. The existence of the reader is left as an exercise in the second-order coefficient.

    No Guts, No Story! VinDSL © 2010

  4. #4
    the Windlord Gwaihir's Avatar
    Join Date
    Jun 2002
    Posts
    2,562
    If it's a bandwith thievery, then it isn't that specific host using your bandwith, is it? Rather, they'd be pointing their clients to files / images on your site - directly, not by linking in the fair and square way. Thus, blocking that hosts IP won't do you any good, you indeed need to block those referred by it, as Vin points out.
    Regards,

    Wim Heemskerk
    ---
    Visit MeCCG.net - Cardgaming in J.R.R. Tolkien's Middle-earth
    And Gwaihir.net - The Middle-earth CCG store

  5. #5
    Yeah, I know a LOT! Vin DSL's Avatar
    Join Date
    Mar 2003
    Location
    Arizona Uplands
    Posts
    10,775
    OMG! Banner day! We agree on something...
    DISCLAIMER Any resemblance between the views expressed above and those of the owners and operators of this system is purely coincidental. Any resemblance between these views and my own are non-deterministic. The existence of Vin DSL is questionable. The existence of views in the absence of anyone to hold them is problematic. The existence of the reader is left as an exercise in the second-order coefficient.

    No Guts, No Story! VinDSL © 2010

  6. #6
    the Windlord Gwaihir's Avatar
    Join Date
    Jun 2002
    Posts
    2,562
    Quote Originally Posted by Vin DSL
    OMG! Banner day! We agree on something...
    We seem to agree more often than not these days, Vin. Be carefull not to ware out the banner.
    Regards,

    Wim Heemskerk
    ---
    Visit MeCCG.net - Cardgaming in J.R.R. Tolkien's Middle-earth
    And Gwaihir.net - The Middle-earth CCG store

  7. #7
    JPC Addict richardevanslee's Avatar
    Join Date
    Feb 2003
    Location
    Durham, NC
    Posts
    104
    Quote Originally Posted by Ron
    The IP addy should be in your Apache logs, shouldn't it?
    I couldn't find 'bayshore' anywhere in the logs. Wasn't sure what else to do looking at a 17 Meg text file is a bit daunting.

    Thanks,
    Richard

  8. #8
    JPC Addict richardevanslee's Avatar
    Join Date
    Feb 2003
    Location
    Durham, NC
    Posts
    104
    Quote Originally Posted by Vin DSL
    Try putting this in your .htaccess file...
    Code:
    RewriteCond %{HTTP_REFERER} (bayshoresoftware.com) [NC]
    RewriteRule ^(.*) %{HTTP_REFERER} [R=301,L]
    Once again, many thanks,
    Richard

  9. #9
    JPC Addict richardevanslee's Avatar
    Join Date
    Feb 2003
    Location
    Durham, NC
    Posts
    104
    Quote Originally Posted by Gwaihir
    If it's a bandwith thievery, then it isn't that specific host using your bandwith, is it? Rather, they'd be pointing their clients to files / images on your site - directly, not by linking in the fair and square way.
    I've been having lots of trouble with people hitting a few of my sites to build scraper sites.

    Blocking theplanet.com's IP worked oddly enough.

    I'm certainly grateful for Vin's advice.

    Richard

  10. #10
    JPC Addict richardevanslee's Avatar
    Join Date
    Feb 2003
    Location
    Durham, NC
    Posts
    104
    One rather odd way to drain a site a bit is to send it 4,638,116 searches for "Char-Broil."

  11. #11
    Loyal Client
    Join Date
    Oct 2003
    Location
    Washington, DC
    Posts
    120
    Great info... you learn something new every day. I've been having folks link directly to images on my site, sucking up bandwidth. I don't care if they save the images on their sites, I just don't want them wasting my bandwidth... using this info, I did a bit of Googling and came up with the following to block all direct linking to images on my site. I tested using one of the handy referrer URLs in my logs and it seems to work. Any comments on how to make it better?

    RewriteEngine On
    RewriteCond %{REQUEST_FILENAME} \.(gif|jpe?g|png)$ [NC]
    RewriteCond %{HTTP_REFERER} !^http://([-a-z0-9]+\.)?mysite\.com [NC]
    RewriteRule ^(.*) %{HTTP_REFERER} [R=301,L]
    Last edited by tinnel; 09-30-2005 at 07:47 AM. Reason: fix typo

  12. #12
    || $name ne 'R.Stiltskin'
    Join Date
    Jun 2003
    Location
    Tejas
    Posts
    2,438

    Post Check for referer first

    Quote Originally Posted by tinnel
    Any comments on how to make it better?
    I don't know about better, but here's another way to confirm that they have their referer enabled. If it isn't, then send them to a warning page.
    Code:
    # A different version to limit image hotlinking
    # Check for referer; send client to warning page if no referer
    RewriteCond %{HTTP_REFERER}  ^$
    RewriteRule ^.*$  /home/account/public/path/to/needreferer.html	[L]
    
    # Regex the received referer; if no match, redirect request for images to home
    RewriteCond %{HTTP_REFERER} !^http://([-a-z0-9]+\.)?mysite\.com/	[NC]
    RewriteRule .*\.(bmp|gif|ico|jpeg|jpg|png)$ http://www.mysite.com/	[NC,R,L]
    And now the warning page at needreferer.html:
    Code:
    <html>
    <head>
    <title>www.mysite.com - Please enable referer<title>
    </head>
    <body>
    <p>Please enable your browser's referer...</p>
    </body>
    </html>
    Try it out. If it works better, let us know. Hope this helps.

  13. #13
    Yeah, I know a LOT! Vin DSL's Avatar
    Join Date
    Mar 2003
    Location
    Arizona Uplands
    Posts
    10,775
    Quote Originally Posted by tinnel
    Great info... Any comments on how to make it better?
    There a zillion ways to block grifters. 'Better' depends on YOUR situation.

    In MY situation, I want some pics to be blocked from thieves, but other pics and graphics are used in my postings, and so forth, here and elsewhere, so I can't use a 'nuclear option'...
    DISCLAIMER Any resemblance between the views expressed above and those of the owners and operators of this system is purely coincidental. Any resemblance between these views and my own are non-deterministic. The existence of Vin DSL is questionable. The existence of views in the absence of anyone to hold them is problematic. The existence of the reader is left as an exercise in the second-order coefficient.

    No Guts, No Story! VinDSL © 2010

Bookmarks

Posting Permissions

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