Forum Discussion
VOLA_144433
Nimbostratus
Nov 03, 2014IPs filtering
Hello (still newbie)
I have a rule that limits the access to /alfresco to a range of IP addresses. The access is limited to servers and IY users.
The pb is that I need to authorize the acce...
nitass
Employee
Nov 03, 2014this is just one of examples.
when HTTP_REQUEST {
if { [HTTP::uri] starts_with "/alfresco/webdav" } {
return
}
if { ([HTTP::uri] starts_with "/alfresco") } {
Check if the client IP is not part of the datagroup hosts/networks
if { not ([matchclass [IP::client_addr] equals allowed_clients_alfresco]) } {
Log dropped requests
log local0. "Invalid client IP: [IP::client_addr] - discarding"
drop the request
discard
HTTP::redirect "/erreur/403.php"
}
}
}
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)Recent Discussions
Related Content
DevCentral Quicklinks
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com
Discover DevCentral Connects