darrenclegg_199
Sep 09, 2011Nimbostratus
Access restriction to certain URLs
I have a simple iRule to only allow certain URLs access(see below)
when HTTP_REQUEST
{ if { not ([string tolower [HTTP::host]] eq "www.domain.com") }{
drop
HTTP::respond 200 content \ "Wrong URL entered Access not allowed" "Content-Type" "text/html" } }
I want to allow other URLs within the same iRule e.g www.domain1.com, www.domain2.com.
Can anyone help?