Forum Discussion

DaveC_53879's avatar
Icon for Nimbostratus rankNimbostratus
Nov 18, 2011

Restrict access by IP

I have an irule that I want to use to only allow certain IP addresses. I think what I have should work but it blocks all addresses to the specific URI. I'm running ver. 9.4.6





if { ([HTTP::uri] starts_with "/protect") and ! ([matchclass [IP::remote_addr] equals $$My_Internal]) } {









My_Internal equlas my IP addresses. Even if I put an IP in directly,, it blocks everything.



What am I missing here? I see lots of similar posts and I think this should work. Thanks in advance.



11 Replies