Deny from all on a free plan


#1

Let’s make the first rule named “src_allowed”

Expression:
(ip.src eq IP1) or (ip.src eq IP2) or (ip.src eq IP3) or (ip.geoip.asnum eq 46475)

Action: Allow

And the second one named “deny_from_all”

Expression:
(http.request.method eq “GET”) or (http.request.method eq “POST”) or (http.request.method eq “PURGE”) or (http.request.method eq “PUT”) or (http.request.method eq “HEAD”) or (http.request.method eq “OPTIONS”) or (http.request.method eq “DELETE”) or (http.request.method eq “PATCH”)

Action: Block

That’s all folks :slight_smile:

Source


#2

I believe you can do this in a single rule and simply deny if IP NE IP1 or IP2 etc.


#3

I tried this rule - it did not work… Error 1020


#4

I have tried…


closed #5

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