XML Rules

Security rules in an XML file

You can place all your security rules inside of an XML file and then tell CBSecurity where they are:

// CB Security
cbSecurity : {
  firewall : {
    rules : {
      provider : {
        "source" : "config/security.xml.cfm"

Then your XML file can look like this:

<?xml version="1.0" encoding="ISO-8859-1"?>
<-- <
Declare as many rule elements as you want, order is important 
Remember that the securelist can contain a list of regular
expressions if you want

ex: All events in the user handler
ex: All events
ex: All events that start with admin

If you are not using regular expressions, just write the text
that can be found in an event.
        <securelist>^user\..*, ^admin</securelist>



Last updated