Please, help! My site is under DDoS attack now. Attackers load page: /?p={RANDOM_NUMBER}http://antijob.anho.org/

How to block all requests with it? Trying:

location / {
if ( $args = '' ) {
  rewrite "(.*)antijob\.anho(.*)" http://google.com permanent;
}

But it doesn`t work.

Sorry for bad English.

link|improve this question
feedback

migrated from stackoverflow.com Aug 10 '11 at 14:58

This question came from our site for professional and enthusiast programmers.

1 Answer

up vote 0 down vote accepted
if ( $request_uri ~ antijob.anho.org ) {
    return    444;
}

Paste this before any locations.

link|improve this answer
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.