Referer rule not working as intended

Hello

I am trying to create a rule that will do the following.

If country = India, Pakistain, China

Does not come to my site from the search engines Google.com, Google.com.au, Bing.com

Then, Manage challange (basically direct hits)

My problem is, when I try to create to this rule it seemed to manage challanging everything from these locations instead skipping M/C when they come from the listed search engines

I made the following the rule to do this, However, as mentioned it was MC everthing from these places.


.

Is there something wrong with my rule? I want anyone coming from google.com, google.com.au. bing.com to skip the manage challange. All others must have the M/C

Thanks

Obligatory warning: Referrer is easily spoofed, and you might end up challenging legit bots as well (you could just add a “and Known Bots off” condition to try to not challenge some known good bots verified by Cloudflare). Some browsers also just don’t send referrar for privacy reasons.

The biggest reason why it isn’t working though is your Referers are wrong. The referrar can contain the scheme, origin, path, and query string: Referer - HTTP | MDN.
It looks like based on the referer policy for google and bing, they would just be

https://www.google.com/
https://www.google.com.au/
https://www.bing.com/
1 Like

Hi.

I basically don’t care about traffic from these places in the world. So its not an issue. I only allow certain crawlers onto my domain anyway…

So are you saying I shoukd add the whole URL https://www.google.com instead of just google.com ?

How narrow-minded. Perhaps you best go back to the 19th century before the internet existed.

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.