Close all direct entries

Hi, I want to close all direct entries to the site except google and yandex. Incoming members come only via google and yandex.

What can I do for it? Which WAF rule should I use?

A “Firewall Rule” should be a better fit for this.
It should check that if the Referrer is NOT Google AND Referrer is NOT Yandex AND Referrer is NOT your domain, then Block.

where?

You can go with Does Not Equal, or Does Not Contain. It would probably suffice to make “Does Not Contain” entries for ‘google’, ‘yandex’, and ‘example.com’ (your domain). Then keep an eye on the Firewall Log for blocked requests.

I did what you said, but I can’t navigate the sub-pages. Cannot navigate within the site.

Maybe you can explain more about this issue? Any error message?

1 Like

The error message comes up as I close it to other areas. I just can’t navigate within the site, which is a problem.

And there’s nothing in the Firewall Events Log?

and css not work

Ray ID

60125bc83a360c0d

Method

GET

HTTP Version

HTTP/2

Host

Path

/favicon.ico

Query string

Empty query string

User agent

Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/87.0.4280.88 Safari/537.36

IP address

185.89.248.55

FilterExclude

ASN

AS209181 ZENEX5IVE-

Country

Turkey

Service

Firewall rules

Rule ID

3b69a5bc7d9d456fbea8dd6361a3b8d3

Rule name

d

Expression

(not http.referer contains "google" and not http.referer contains "yandex" and http.referer ne "SITEEEE.COM")

Action taken

Block

You did a Not Equal for your domain name referrer. Try Contain.

Do you have a chance to do it and throw it as an example? picture

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