What is the name of the domain?
elvistech.ng
What is the error number?
site loads fast but security rules takes a lot of time
What is the error message?
security is very slow
What is the issue you’re encountering
site loads fast but security rules takes a lot of time, how to setup properly
What steps have you taken to resolve the issue?
Hello, I am on a Pro plan. My site loads fast, but security rules take a lot of time. I suspect that the security rules I set up may be causing the issue.
Here are the security rules I’ve set up. I have 3 custom rules and 1 site rate limiting.
Custom Rules:
1.)
Allow trusted crawlers
(cf.verified_bot_category eq “Search Engine Crawler”) or (cf.client.bot) or (http.user_agent contains “(compatible; Google-InspectionTool/1.0)”) or (http.user_agent contains “(compatible; Google-InspectionTool/1.0;)”) or (http.user_agent contains “(compatible; Google-InspectionTool/1.0;)”) or (http.user_agent contains “(compatible; Googlebot/2.1; +http://www.google.com/bot.html)”) or (http.user_agent contains “Googlebot-Image/1.0”) or (http.user_agent contains “Chrome-Lighthouse”)
Then take action…
Skip.
2.)
Don’t challenge a specific country, but it does, I don’t know why, but it does, here it is
(http.request.uri.path wildcard r"/*" and not cf.verified_bot_category in {“Search Engine Crawler”}) or (cf.client.bot and not ip.src.country in {“NG”})
Then take action…
JS Challange
3.)
Block ips and useragents
(ip.src in $badips and ip.src eq 2001:ee0:4f52:8c00:a59c:d7ab:f89d:e5d7) or (ip.src eq 2a00:1fa0:440f:7370:0:52:3cd:3301 and http.user_agent contains “seznambot”)
Then take action…
block.
Limiting Rule
(http.request.uri.path wildcard “*”)
When rate exceeds…
200 in 10 sec
Then take action…
JS Challange.
These are the current settings on my site and its doing its job well, saving me from DDoS attack, but… what I intended to set up is…
Allow trusted crawlers, do not challenge users from my country, except if the browser is suspicious, then rate limit requests.
My current settings challenge both users from my country, and this has reduced click-through to my site. Please… help
Was the site working with SSL prior to adding it to Cloudflare?
Yes
What is the current SSL/TLS setting?
Full (strict)
What are the steps to reproduce the issue?
i already stated that on the page