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.. Quote Link to comment 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. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.