My Website is flooded with unknown visiters

Awstats says that my website getting thousands of hits in few seconds. I am using robots.txt and .htaccess, but the problem stays there. Please help me with this. Hosting service suspend my site because of this heavy traffic from unknown IP.

  • I don't see a question... – user253751 Jul 29 '15 at 6:06
  • He asks help with the situation – user45139 Jul 29 '15 at 6:12
  • i want help with this situation, how i defend my website from this bots. @immibis – Satish Deshmukh Jul 29 '15 at 6:15

You simply can't protect your website from illegetimate requests like this. Consider moving your site behind a service which does packet scrubbing and verifies the legitimacy of the connection. One free service you could have a look at is CloudFlare.

| improve this answer | |
  • thanks for help, if iptables will not work. I'll use cloudflare. – Satish Deshmukh Jul 29 '15 at 6:42
  • you want to prevent the traffic from reaching you, if you use iptables, it's generally too late. – Lucas Kauffman Jul 29 '15 at 6:43
  • okay so, do i need to move my website from current hosting service to cloudflare – Satish Deshmukh Jul 29 '15 at 6:46
  • Cloudflare is not a hosting website – Lucas Kauffman Jul 29 '15 at 6:47
  • okay, so how can i use cloudflare's services in my website – Satish Deshmukh Jul 29 '15 at 6:50

You can easily set iptables rules in your firewall to filter the connexions you want and block the undesired ones. You can use your firewall in conjunction with Fail2ban that will help your server (where you hosted your website) in order to update your iptables rules and reject suspicious IP addresses.

| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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