Firewall Rule in Order to Allow only Google Search Referrals

Hello,
I want to allow only google search traffic to my site.
This is to say… I want anyone clicking on my site address from search results or anyone clicking on my site address from the AMP address bar to be able to reach my site and all others to be blocked.
How could this be done?
Thank you

Well, that should be pretty straight forward by evaluating the http.referer variable, however keep in mind the referrer is everything but all too reliable. Visitors could come from one of those search lists and still not send a referrer.

This topic was automatically closed after 30 days. New replies are no longer allowed.