seth_83421
Sep 04, 2009Nimbostratus
How to restrict access to a URL from a different URL
I'm a newbie to iRules, and would like some help please!
I'm wondering how I can restrict access to (for example) www.seagulls.com so it can only be accessed from www.birdwatch.com.
Something like this? Sorry for the messy syntax.
b rule seagulls_rule {
when HTTP_REQUEST {
if {[HTTP::header exists "Referer"]}{
pool seagulls_pool
}
else {
command to drop
}
{
set ::drop_msg "Sorry, you can't access this page directly"
}
}
}
Thanks!!!