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
2060

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            ServerName 127.0.0.0            Order Allow,Deny     Deny from all            

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

      DocumentRoot "E:/WWW/myweb"      ServerName m.sbmmt.com       

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
    About us Disclaimer Sitemap
    php.cn:Public welfare online PHP training,Help PHP learners grow quickly!