Forum Discussion
yes it is very much possible and you already have thought on the correct lines.
when CLIENT_ACCEPTED {
if { ([class match [IP::client_addr] equals Internal] )}
{
HTTP::respond 301 Location "http://testing.dff.com/tnr";
}
else
{
HTTP::respond 301 Location "http://testing.dff.com/pnr";
}
}
Where you internal would be your internal subnets/IP's they land on /tnr and external world land on /pnr.
- Stanislas_Piro2Sep 15, 2017Cumulonimbus
This irule won't work!!
- HTTP commands are not allowed in CLIENT_ACCEPTED event
- the goal was to allow or deny both URLs based on client ip
- even if the question was to filter uri based on client ip to redirect to on of URLs, this irule will loop because there is no URI condition!
- Bhajan_Gupta_28Sep 15, 2017Nimbostratus
Thanks for your response but my requirement is when external users tried to access these two url http://testing.dff.com/tnr http://testing.dff.com/enr
then they get one of holding page which i mentioned in iRule but when internal users tried then they did, means they are able to access these url.
- Bhajan_Gupta_28Sep 15, 2017Nimbostratus
Hi Stanislas thanks for your suggestion, yes this iRule would not work. I have just mentioned the comments again for my requirement, can you help me to make a correct iRule.
- Bhajan_Gupta_28Sep 15, 2017Nimbostratus
Could any one help on this please.