Bastien_8356
Jun 07, 2011Nimbostratus
iRule to block user coming from 1 URL
Hi there,
I'd like to block any http request to any user coming from a particular website.
It's going on a web server that is behind the F5 and already have a public IP address. It's not a node though, not load balanced nor behind a VIP.
I came up with this:
when HTTP_REQUEST {
if { ([HTTP::header "Referer"] eq "http://blahblah/") }
{ drop
}
}
Then I tried creating a VIP with the same public IP address and with the iRule, but the apache stop responding.
edit: I forgot to create associate it with a pool with this single node, that's how I have to do it ?
Can you help me please ? Many thanks.