Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

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.

share
comments disabled on deleted / locked posts

migration rejected from stackoverflow.com Aug 25 '13 at 21:40

This question came from our site for professional and enthusiast programmers. Votes, comments, and answers are locked due to the question being closed here, but it may be eligible for editing and reopening on the site where it originated.

closed as off-topic by Tom O'Connor Aug 25 '13 at 21:40

This question appears to be off-topic. The users who voted to close gave this specific reason:

  • "Questions must demonstrate a minimal understanding of the problem being solved. Try including attempted solutions, why they didn't work, and the expected results. See How can I ask better questions on Server Fault? for further guidance." – Tom O'Connor
If this question can be reworded to fit the rules in the help center, please edit the question.

Browse other questions tagged or ask your own question.