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 access to a particular URL = dav://MYHOST/alfresco/webdav/* for all end-users. Is there a way the except the requests to dav: ?
when HTTP_REQUEST { 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” } } }
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"
}
}
}