How to ban some links under a certain domain name by using nginx WAF – aaPanel

first question :

I have a website with multiple domain names (A.com , b.com , c.xyz , d.uk );

Regarding ‘ b.com ‘, I only want to allow it to successfully access links containing ‘ index.php ‘ . If it does not contain ‘ index.php ‘ , access will be prohibited;

However, other domain names are not affected (A.com, c.xyz, d.uk);

I didn’t find how to set it up in nginx WAF, please help me

second question:

I saw that nginx WAF has built-in spider pond ,
How to prohibit spider access through nginx WAF, such as prohibiting yahoo spider access;

The third one is not a question, but a suggestion;

Is it possible to add the ban ASN function option to nginx WAF? It would be more convenient to ban IP through ASN;

Please give priority to answering my first question. This is what I need most at the moment. Thank you.

Read more here: Source link