Hoping everything is going well,
i’ve my own site :
also have an erp site:
using WAF rule how can i allow my site to be access through global world.
and just allow access to the ERP only from my country (Egypt) and block access it through the global world?
The first solution that comes to my mind is use the following WAF rule expression to only allow Egypt users:
(http.host eq "erpnext.asfourcrystal.com" and ip.geoip.country ne "EG")
And set the action to
This basically blocks every request to
erpnext.asfourcrystal.com which the source IP address is not from Egypt
WAF reference: https://developers.cloudflare.com/waf/
many thanks for your help, i’ll try it and feed you back also shall i do make any rule for the main site
You’re welcome. If you would like the main site globally accessible (including Egypt) then I think no WAF rule is needed.
If you wish you can try to redirect Egypt users to the specific site with Redirect Rules. See https://developers.cloudflare.com/rules/url-forwarding/single-redirects/create-dashboard/ for how to configure it. It should be quite similar to the WAF rule expression but without the
ne (not equal) operator.
This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.