kaushikgotecha Posted August 11, 2006 Share Posted August 11, 2006 I have installed Apache 1.30 on my PC & it is serving on LAN now I want to restrict particular IP Addresses to access my server pl tell me How I can do it? if it is possible.. Link to comment https://forums.phpfreaks.com/topic/17268-restrict-ip-on-apache-server/ Share on other sites More sharing options...
youcantoo Posted August 11, 2006 Share Posted August 11, 2006 In your httpd.conf file you will want to add the following to your <Directory></Directory> containerOrder Deny,AllowDeny from xxx.xxx.xxx.xxxAllow from allFor example:<VirtualHost xxx.xxx.xxx.xxx>ServerName mywebsite.com<Directory /path/to/my/files>Order Deny,AllowDeny from IP number I want to blockAllow from all</Directory></VirtualHost>Don't forget to restart your webserver after making your changes. Link to comment https://forums.phpfreaks.com/topic/17268-restrict-ip-on-apache-server/#findComment-73357 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.