Forum Discussion
May 06, 2021
Hi Thiyagu,
Can you try merging iRules?
when HTTP_REQUEST {
if { [class match [HTTP::header Referer] contains HTTP_REFERER_ALLOW_LIST] } {
HTTP::header insert "srcaddr" [IP::remote_addr]
}
else {
HTTP::respond 400 content "Bad Request" Content-Type "text/html"
}
}