When your site is attacked by DoS (denial-of-service)/ DDoS(distributed denial-of-service), users of customers can't visit the site and you will lost something (reputation, branch, money...). Or you recognize that someone is attacking your site, you know their IP and you don't want they access to your site. In addition, you want to block spammer from some Asia country (China, Vietnam,...). So, some reasons above are enough to use IP Blocking.
How to use IP Blocking?
Because of this blog focuses to OpenSource in PHP programming language (run
on Apache), I only give you how to block IP with .htaccess file (for ASP - run
in IIS server, you can research the urlScan of Microsoft). This post is shared
the online tool, to build ACL (Access Control List) as .htaccess (or some
kind):
(Click to the image for full size)
It can block an IP address or ranges of addresses.
You choose one or more country, select the format and click to “Create ACL”.
After it has done, you copy the generated content to .htaccess file and upload
to the root directory of your site.
In future posts, we ‘ll discus about .htaccess file
(how to use it).
0 comments:
Post a Comment