1

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.

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

2 Answers 2

1

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.

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

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.

0

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .