0

How to block the sites to outside in apache

I need to block my sites to outside...i.e it should work only in my network... how to do that in apache...??

Apache Add a comment
michael
asked Jan 25 2017

Answer

0

Allow only your network to access your site by adding the following lines into apache config file......

Require ip 192.168.1.0/24 Require ip 192.168.2.0/24 Require ip 192.168.3.0/24 Require ip 192.168.4.0/24 ......... .........

Mention the appropriate path in path-to-block column... to avoid the public_html files of 123.com site, Restart the apache service to take effect...

Add a comment
noah
asked Jan 25 2017
edited Oct 05 2018
Post your Answer