In this article, we going to see how to block IP Address with .htaccess. The visitor blocking facilities given by the Apache Web Server. Apache enables us to deny access to particular visitors or allow access to particular visitors. This is very useful for blocking unwanted visitors or only the owner of the website allows to access to particular sections of the website, such as admin. Here the reason for blocking the IP address to protect your website from the hacker or to block unwanted visitors.
To restrictions or block the visitors first create a .htaccess file and add the following code to block the IP address.
Block a specific IP Address
2 |
Order Deny,Allow
Deny from 46.246.123.27
|
Block multiple IP Addresses
3
4
5
|
Order Deny,Allow
Deny from 46.246.123.55
Deny from 36.246.223.23
Deny from 36.246.423.21
Deny from 46.246.323.32
|
No comments:
Post a Comment