Free
Good morning,
plan one:☝
You can try this:
Enter the Nginx WAF IP blacklist conf and add 0.0.0.0-255.255.255.255.255 to disable all IP access to your website.
Then add all Cloudflare IPs to the IP whitelist conf.
https://www.cloudflare.com/zh-cn/ips/
like,
plan two:✌
You can try this:
Add the following restrictions to your site profile:
location / {
deny all; #All access is prohibited.
Allow 103.21.244.0/22; #Only these IP accesses are allowed.
}
like,