Forum Discussion

Thiyagu's avatar
Thiyagu
Icon for Cirrus rankCirrus
May 11, 2021
Solved

IRULE help for HTTP Referer value

Hello All, I'm working on a iRule to get the HTTP referer value and to send a response to the client if the referer value is changed. iRule is working however if we use the http referer value as "h...
  • AlexBCT's avatar
    May 11, 2021

    Hi Thiyagu,

     

    I believe the problem lies with the "contains" part of the if statement in which you check for the domain name. Technically, ".abc.comm" contains ".abc.com" and as such will be allowed through.

     

    You can try to work with "ends_with" instead of "contains", which should block this one as well.

     

    Hope this helps.