Technical Forum
Ask questions. Discover Answers.
cancel
Showing results for 
Search instead for 
Did you mean: 
Custom Alert Banner

Block Domain Redirection with irule.

cyb3r_3y3
Nimbostratus
Nimbostratus

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 1

nathe
Cirrocumulus
Cirrocumulus

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

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

N