Home> Topics> Pagoda Panel> body text

Disable IP access in pagoda nginx environment

藏色散人
Release: 2019-10-25 14:04:59
forward
5332 people have browsed it

The following tutorial column ofPagoda Panelwill introduce to you the tutorial on prohibiting IP access (anti-malicious analysis) in nginx environment. I hope it will be helpful to friends in need!

Disable IP access in pagoda nginx environment

1. Bind a default site (an idle site) and all domain names not bound to the Pagoda panel will access this default site

Disable IP access in pagoda nginx environment

2. Modify the site configuration file and add the following code below server_name (444 can be changed to an error code such as 404 or 502):

return 444;

Specific As shown in the picture below:

Disable IP access in pagoda nginx environment

After saving the configuration file and using the IP to access the site, it will display "This webpage cannot operate normally". See the picture below for details:

Disable IP access in pagoda nginx environment

Indicates that we have successfully banned the IP from accessing the site.

The above is the detailed content of Disable IP access in pagoda nginx environment. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
source:boke112.com
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
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!