Restrict Access To A Specific Network/ip
Restrict access to a specific network/ip for a website
# vim /etc/httpd/conf/httpd.conf
<Directory /var/www/html/website/>
Order Deny,Allow
Deny from all
Allow from 127.0.0.1 192.168.2.0/24
</Directory>
Allowed the clients who has IP address in 192.168.2.0/24 series to view the website.
If you want to allow all clients to access the website, change the line Allow from 127.0.0.1 192.168.2.0/24 to Allow from All.
Restrict Access To A Specific Network/ip
Reviewed by vivek sathisan
on
13:11
Rating:

No comments: