linux - 如何設定某網頁只能透過IP瀏覽?
天蓬老师
天蓬老师 2017-04-17 16:42:44
0
5
301
天蓬老师
天蓬老师

欢迎选择我的课程,让我们一起见证您的进步~~

reply all(5)
黄舟

Determine the original address of the current web page. If it is IP 139.., the page will be displayed, otherwise it will not be displayed or will be redirected.

刘奇

The request header in the HTTP protocol will contain a HOST parameter. Just make a judgment based on this parameter.

阿神

If it is convenient, put the root path of the server's default website into the root path of the website, so that the domain name and IP are equivalent. Then go to the configuration file of the domain name to set these paths to prohibit access.

If it is inconvenient, set these paths in the domain name configuration file to only allow local access. Then go to the configuration file of the default website and set these paths as reverse proxy to the path corresponding to the domain name.

左手右手慢动作

It’s better if you don’t need a domain name

迷茫

Just don’t provide the domain name

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