WordPress knowledge sharing

Pagoda Panel Nginx Firewall Add CC Request Type Interception Rules

Pagoda panel Nginx firewall recently updated CC request type interception rules, including URL with parameters, URL without parameters, IP, and IP+UA. In this article, Weiss notes share relevant rules and explanations.

 Pagoda Panel Nginx Firewall Add CC Request Type Interception Rules

1. URL with parameters

It is suitable for most occasions. Its defense effect is average. The URL with parameters is set 60 times in 60 seconds. It can be modified according to your actual situation.

An IP requests the same URL (with parameters) of a website more than 60 times in 60 seconds

For example, request/index. php/index/login? username=admin

Exactly match the entire URL above, and the request will be blocked only after the number of times is reached when the URL remains unchanged

2. URL without parameters (not applicable to Thinkphp default route)

Same scene and effect as above.

An IP requests the same URL (without parameters) more than 60 times in 60 seconds,

Take the URL above for example:/index. php/index/login? username=admin

It is calculated with the URL of/index.php/index/login, that is, the request will be blocked only when the URL (without parameters) is unchanged.

3、IP

Used when your website/business is heavily attacked.

If the total number of times an IP accesses all websites in the server within 60 seconds exceeds 60, it will be blocked, which is the sum of all websites!!!

This defense effect is good, but it will also affect the user experience. It is recommended to enable it when attacked, but not normally.

4. IP+UA (applicable to API interface)

If an IP+UA accesses all websites of the server for more than 60 times in 60 seconds, it will be blocked

It is recommended not to open it at ordinary times. It is only applicable to API websites under special circumstances.

If your nginx firewall does not see this function, it is recommended to update and upgrade the firewall.

Lao Wei suggested that the pagoda panel is suitable for novices and Xiaobai to build a website, and supports Linux and Windows systems, Click to go directly to the pagoda website Register an account and get a free professional edition gift package of ¥ 3188 (only 1188 yuan for permanent authorization of the professional edition). New users can enjoy a professional edition experience of 0.99 yuan for 7 days.
Recommended selection of pagoda panel Alibaba Cloud Tencent Cloud The server
For more information, see Special topic of pagoda panel
Click to view NetEase Cloud Classroom "Introduction to Pagoda Linux Panel for Novice"

Like( zero )
Article name: Blocking Rules for Adding CC Request Types to Pagoda Panel Nginx Firewall
Article link: https://www.vpsss.net/26458.html
Copyright notice: The resources of this website are only for personal learning and exchange, and are not allowed to be reproduced and used for commercial purposes, otherwise, legal issues will be borne by yourself.
The copyright of the pictures belongs to their respective creators, and the picture watermark is for the purpose of preventing unscrupulous people from stealing the fruits of labor.