How to block access to my website by entering the external IP address in the browser address bar?
Destiny.
Destiny. 2019-08-29 15:41:03
0
1
2186

How toBlockEnter the external IP in the browser address bar to access my website


Destiny.
Destiny.

reply all(1)
ringa_lee

There are two ways to implement the WEB server built with apache, both of which are implemented by modifying the httpd.conf file. Here are examples.

Method 1: At the end of the httpd.conf file, add the following code

          NameVirtualHost 127.0.0.0
     <VirtualHost 127.0.0.0>
     ServerName 127.0.0.0
     <Location />
        Order Allow,Deny
        Deny from all
     </Location>
     </VirtualHost>

  ----------------Separating line----- ------------------

          <VirtualHost 127.0.0.0>
     DocumentRoot "E:/WWW/myweb"
     ServerName www.php.cn
     </VirtualHost> 

Explanation: The part above the dividing line is to reject any access request directly through the IP 127.0.0.0, �%9

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template