> For the complete documentation index, see [llms.txt](https://deeper-network-inc.gitbook.io/deeper-connect-knowledge-base/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://deeper-network-inc.gitbook.io/deeper-connect-knowledge-base/atom-os-functions/security/customized-https-rules/add-rule.md).

# Add Rule

<figure><img src="/files/XHSTMljT8at6UiKoJz7U" alt=""><figcaption><p>Add HTTPs Rules</p></figcaption></figure>

Here's an example of adding a rule:

<figure><img src="/files/cNdNRikjI282s06jAQm6" alt="" width="563"><figcaption></figcaption></figure>

* Step 1: enter the desired domain that the rule is to be applied. The domain must be included as it is a part of the pattern, and the rule will only be effective for domains that match this pattern.
* Step 2: enter the pattern that will be checked to determine which URLs the rule should apply to. You can use regular expressions to form this pattern to allow flexibility in searching.
* Step 3: enter the pattern type, which currently only supports URL patterns.
* Step 4, for redirection only, enter the rewrite pattern, which is a part of the pattern and will override the corresponding content in the rewrite information.
* Step 5, for redirection only, enter the rewrite information, which is the text that will replace the matched content based on the rewrite pattern.
* Step 6, select the rule type that will be performed using the pattern. Currently, only redirection/rewrite and denial are supported. Various options change the return code received by the browser.
* Lastly, click "**Submit**" to complete adding the rule.&#x20;
