# Model Rules

If you prefer to store your rules your way, CBSecurity can talk to any WireBox ID or model and get the rules from them by using the `model` source in the rule provider.

{% code title="config/Coldbox.cfc" %}

```javascript
// CB Security
cbSecurity : {
  firewall : {
    rules : {
      provider : {
        "source" : "model",
        "properties" : {
            "model" : "SecurityService",
            "method" : "getSecurityRules"
        }
      }
    }
  }
}
```

{% endcode %}

* The `model` property is any WireBox ID or classpath
* The `method` property is the name of the method to call to get an array of rules back<br>


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://coldbox-security.ortusbooks.com/getting-started/configuration/firewall/model-rules.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
