Home  >  Article  >  Topics  >  Disable IP access in pagoda nginx environment

Disable IP access in pagoda nginx environment

藏色散人
藏色散人forward
2019-10-25 14:04:595333browse

The following tutorial column of Pagoda Panel will 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!

Statement:
This article is reproduced at:boke112.com. If there is any infringement, please contact admin@php.cn delete
Previous article:Is php a pagoda?Next article:Is php a pagoda?