Forum Discussion

tororoy76_17327's avatar
tororoy76_17327
Icon for Nimbostratus rankNimbostratus
Jul 27, 2015

need help! block requests when ( /administrator and not philippine ip address and not abc.com.ph)

i dont know if this is correct, but here is my irule

 

when HTTP_REQUEST { if { (!([HTTP::host] contains "abc.com.ph")) and ([HTTP::uri] starts_with "/administrator") and (!([whereis [IP::client_addr]] contains "Philippines")) } { drop } }

 

Can you suggest a better way to do it? thanks!

 

2 Replies

  • I tested it and i can't connect to abc.com.ph/administrator using outside of the philippines connection. Maybe there's an error in my composition?