Forum Discussion

cyb3r_3y3's avatar
cyb3r_3y3
Icon for Nimbostratus rankNimbostratus
Jan 24, 2021

Block Domain Redirection with irule.

My requirement is to block domain redirections for example :

 

my domain is www.test.com, someone has created domains like www.fun.com and www.rock.com on a external DNS and is redirecting to my domain www.test.com . Is there a way to block these redirects in an iRule.

 

Kindly advice.

1 Reply

  • nathe's avatar
    nathe
    Icon for Cirrocumulus rankCirrocumulus

    This may help (note I haven't validated this):

    when HTTP_REQUEST { 
       if { [string tolower [HTTP::host]] != "www.test.com" }  {  
           reject 
         } 
     }

    N