Skip to main content

Unusually large torrent traffic directed to our server

Comments

4 comments

  • quizknows
    I created a WHT thread on this, it's discussed in detail here: [url=http://www.webhostingtalk.com/showthread.php?t=1443734]Anyone else seeing Pirate Bay traffic directed to their sites? - Hosting Security and Technology - Web Hosting Talk The traffic has to do with Chinese DNS servers returning seemingly random (and incorrect) IPs for popular domains like piratebay and facebook. I find this modsec rule to be extremely effective:
    SecRule REQUEST_URI "announce(.php)?\?info_hash=" "t:urldecode,t:lowercase,deny,status:411,id:378575"
    If you are getting hit exceptionally hard, you can change the rule above from "deny" to "drop" which will drop the TCP connection instead of returning the 411 page.
    0
  • webstyler
    Thanks, but this rules stop before yours SecRule REQUEST_FILENAME|ARGS|ARGS_NAMES|REQUEST_HEADERS|!REQUEST_HEADERS:Referer "@validateUtf8Encoding" "deny,log,auditlog,msg:'UTF8 Encoding Abuse Attack Attempt',id:'950801',severity:'4'" How to give priority to your ?
    0
  • quizknows
    You should just need to make sure the new rule appears in the configuration files above/before the old rule. ModSecurity will process the rules in the order they're included.
    0
  • cPanelMichael
    Hello, For anyone else viewing this thread and new to creating custom Mod_Security rules, note that you can modify/add custom rules via through Web Host Manager: "WHM Home "Security Center " Mod_Security Tools " Edit Rules" "WHM Home "Security Center " Mod_Security Tools " Add Rule" Thank you.
    0

Please sign in to leave a comment.