I want to limit some page(url) could only access with specific ip.
ex: www.google.com/topic, could only access by 220.127.116.11
How should I setting on cloud waf to meet my needs?
This can be accomplished with an IncapRule. (Security Rule)
Within the UI for the onboarded domain, expand Security in the left hand nav and click Rules.
At the top right, click the blue Add Rule button.
Select URL from the first drop down box.
The second filter will determine how to match the URL. If you want a strict match choose "==". This would match strictly /topic.
Alternatively, you could choose "Starts with". This would match /topic/path1, /topic/path2, etc.
In the Value field, enter /topic
Click the blue +Add button
The editor window should be as displayed below.
Now we need to apply the IP restriction.
From the first drop menu, select Client IP
For the second drop down box, select != (this means, "does not equal")
In the Value box, enter the IP, 18.104.22.168
Click the blue +Add button.
The editor box should now appear as below:
This logic states that if the URL is /topic and the Client IP is not 22.214.171.124, the execute the action.
The next step is to define the action.
From the Action menu, select Security and then Block Request.
Give the rule a name within the Rule Name box and click Save.
The rule should look like the following when you are done.