Forum Discussion

Jason_40769's avatar
Jason_40769
Icon for Nimbostratus rankNimbostratus
Aug 09, 2010

Subwebsite ACL

We have a subsite that we would like to have an ACL for and im trying to figure out how to do it. The site would be www.mysitename.com/admin and i only want a certain host ip and network to access it. here is what i found on dev central but i get errors.

12 Replies

  • Actually, can you try one more thing as well:

    
    when HTTP_REQUEST {
    if { ([class match [string tolower [HTTP::uri]] contains subsite]) and !([class match [IP::client_addr] eq allow]) } {
    discard }
    }
    

    Notice I added parens around your boolean tests in the if statement.

    -Matt
  • Guys,

     

     

    I would like to expand on this rule a bit and allow access to a folder behind the /admin called /uploads any ideas?