AskJeeves == DDOS

Discussion in 'General Chat' started by JoshuaGross, Feb 21, 2007.

  1. #1
    In the past 2 hours or so, Ask has essentially launched a massive DDOS attack on my site. They managed to crash my server (twice) just by requesting so many pages. So, I just banned them - using robots.txt, but they can ignore that, so I added this to the top of my PHP pages:

    
    if (preg_match('#Ask Jeeves\/Teoma#', $_SERVER['HTTP_USER_AGENT']))
    {
         die('Ask Jeeves/Teoma is evil and tends to crash servers. So, it\'s blocked. Sorry, kind of. We\'re all for competing with Google, but it\'s not our fault the spider sucks.');
    }
    
    PHP:
    I've heard similar reports, and people complaining that Ask ignores robots.txt, and people calling them but Ask doesn't care/won't do anything.... So yeah, I'm essentially boycotting Ask until they stop sucking. Anyone care to join me? :D
     
    JoshuaGross, Feb 21, 2007 IP
  2. jimsmith

    jimsmith Peon

    Messages:
    629
    Likes Received:
    12
    Best Answers:
    0
    Trophy Points:
    0
    #2
    what does the code you provided do exactly?
    how is it better than using robots.txt?
     
    jimsmith, Feb 21, 2007 IP
  3. JoshuaGross

    JoshuaGross Peon

    Messages:
    411
    Likes Received:
    14
    Best Answers:
    0
    Trophy Points:
    0
    #3
    If the AskJeeves spider requests a page from my server, it shows that error message. Therefore no CPU time or database stress will be spent on it.
     
    JoshuaGross, Feb 21, 2007 IP
  4. jimsmith

    jimsmith Peon

    Messages:
    629
    Likes Received:
    12
    Best Answers:
    0
    Trophy Points:
    0
    #4
    i like the idea.
    how did you know how to code that?
    did you research how to do it on the net?
     
    jimsmith, Feb 21, 2007 IP
  5. JoshuaGross

    JoshuaGross Peon

    Messages:
    411
    Likes Received:
    14
    Best Answers:
    0
    Trophy Points:
    0
    #5
    I didn't research it, I wrote it. I do websites for clients and it's pretty standard PHP.... a regular expression pattern against the reported browser.
     
    JoshuaGross, Feb 21, 2007 IP
  6. w3bmaster

    w3bmaster Notable Member

    Messages:
    17,594
    Likes Received:
    416
    Best Answers:
    1
    Trophy Points:
    240
    #6
    Hmm Teoma crawls my sites but i didn't had any trubles ....
     
    w3bmaster, Feb 21, 2007 IP