Forum Discussion

Moonotech's avatar
Moonotech
Icon for Nimbostratus rankNimbostratus
Sep 05, 2024

Request URL and Referel http header

Hello  Everyone,

 

Kindly help with how i can change the Request URL and Referrel header field.

 

And also i want to be able to send the 2 field to the logs.

 

Many Thanks.

 

Regards,

  • Hi ,

     

    If you are talking about http origin and referrer, please try via this if it's a post

    header.

     

    when HTTP_REQUEST

    {

    if {[HTTP::method] eq "POST"}

    {

    HTTP::header replace origin "example.com" 

    HTTP::header replace referer "example.com" 

    else { return } }

  • If you have to apply redirect you can achive this via LTm policies. Just need to create a policy with redirect url.