Hi, In past 7 days i got 10,000 visit on my wordpress website from bangladesh. I think it is hacking attack. I want to ban bangladesh ip to visit my website. How can I do this? Thanks
I think, you can restrict the access through .htaccess file, but you should know the exact IP range to edit the file.
Set your site to use CloudFlare. It's free and will speed up your site. Also, it allows you to block entire countries easily. It doesn't necessary block them like a chinese firewall, but it will prompt visitors to enter a captcha before visiting, thus filtering any illegitimate traffic.
First, head over to cloudflare and sign up for your free account. This is relatively painless. At this point you will want to add your site. Depending on your configuration, whether or not you want to server subdomains etc.. through Cloudflare, you will want settings similar to mine, the following being most important: Next you will be provided with options. Some sites I use can safely function with bleeding edge optimization, some will not. I’m using the basic optimization on fixyourserver.com with a low security setting. I will likely setup custom settings once I have tested further. Once this is done, CloudFlare will provide you with nameserver settings. Pull out your registrar information and update your nameservers. Many different domain registrars have different configurations, mine is very different so I will spare you with the screenshots here.
I apologize for posting again; however, I just saw that you were running WordPress as well. You can install w3 Total Cache plugin and it has specific changes which can use CloudFlare as well. I believe that this will definitely help with your bandwidth and potential hacking attempts.
It may be people using a proxy who are not even in bangladesh. As long as you are well protected against spam it's all good.