Brian_Kenworthy
Oct 22, 2012Nimbostratus
Allow Access to URL from Inside but Not From Internet
Hi All,
What is the best way to allow access to a URL from the inside network, but not from the public Internet? I have this irule, but when I apply it to the virtual server, all traffic is impacted. I'd like to be able to allow 10.16.0.0/16 to be able to access the URL, but everything from the Internet to be blocked.
when HTTP_REQUEST {
switch -glob [string tolower [HTTP::path]] {
"/proxyservice*" {
log local0. "[IP::client_addr]:[TCP::client_port]: Dropping request to [HTTP::uri]"
HTTP::respond 200 content "Forbidden
Website Error: Forbidden Your information has been logged.
"
}
default {
pool
}
}
}
Thanks in advance for your help!
Brian