Welcome! Log In Create A New Profile

Advanced

DDoS protection on nginx

Posted by synapse-host 
DDoS protection on nginx
June 22, 2011 01:18PM
Hello,


As my site is in danger of ddos attacks I've got the question, how to protect nginx agains ddos?
Some russian Hosters have a http ddos migration that works follow:
The users requests as example URl/index.php?foobar=4, the user get first a blank html site with some javascript code into which set a cookie and then the user the forwarded to index.php?foobar=4. If it is a bot, they mostly can not accept cookies.
And if the cookie is setted, the user dont get anymore to the blank site, he can directly access the full page.

As I know this is very effective, have anyone an idea where I could get such script / how to configure? What else methods of protection are there ( ofc I will block ICMP etc. by iptables ):?

Thanks

PS: If there is any one experienced I would also pay for a good setup!
Re: DDoS protection on nginx
June 24, 2011 04:51AM
deflate.medialayer.com

It works perfectly with a little bit of optimization.

Here's a script to run it every 10 seconds too:
#!/bin/sh
while [ true ]; do
bash /root/ddos/ddos.sh > /dev/null
sleep 10
done

Crontab:
@reboot /root/ddos_10s.sh & > /dev/null
Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 176
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready