Forum Discussion
Thiyagu
Cirrus
Dec 15, 2020Irule help to block HTTP request if the HTTP Referer header value is null or with wrong domain
Hello Team, I'm in need of an Irule to block HTTP request if the HTTP Referer header value is null or with wrong domain address. Could you please help with an irule for this request? ...
I think the receive string is evaluated as a regular expression. So you could potentially set the receive string to something like:
(200 OK|503)
The 200 OK string is logically OR'd with the 503 string. You should avoid using just 200 as it's commonly found in the date response header regardless of the HTTP status of the response.
And a send string like:
GET / HTTP/1.1\r\nHost: \r\nConnection: close\r\n
Aaron