haxzorian_35595
Apr 01, 2017Nimbostratus
Blocking admin uri via IP address and keyword?
Hello All,
Is there a proper way to block access to admin URIs using a a keyword and IP address? Such as, if the request comes from 192.168.0.0/16 space and contains /platform/* allow the connection. If those two things don't match, drop the request?
I've used this from CodeShare, however, it doesn't look for the IP address variable.
when HTTP_REQUEST {
switch -glob [string tolower [HTTP::uri]] {
"/platform/*" { reject }
default { return }
}
}
So it just blocks my Web Admins from being able to use the console for edits. All in all, i'm looking for some direction to employ best practices in doing something like this.
Thank you in advance!