Skip to content

Rules Overview

Rules let you tell nsin how to handle visitors to your site. With a rule you can send people to a new page, change how caching works, slow down attackers, or block bad traffic — all without touching your server.

You create rules in the Rules section of your dashboard.

Every rule has two parts:

  1. When — the condition that decides if the rule should run (for example, “when the address starts with /old-page”).
  2. Then — the action to take (for example, “redirect to /new-page”).

If a visitor’s request matches the When, nsin does the Then.

RuleWhat it doesGuide
RedirectSend visitors from one address to another.Redirects
Cache RuleChange how a page is cached (or skip the cache).Cache Rules
Rate LimitingSlow down visitors who make too many requests.Rate Limiting
WAF (Firewall)Block harmful or unwanted traffic.WAF
  1. Open the Rules section.
  2. Click Add Rule.
  3. Pick the rule type.
  4. Set the When condition.
  5. Set the Then action.
  6. Save.

Rules run from top to bottom. If two rules could match the same visitor, the one higher up runs first. You can drag rules to reorder them.

You don’t have to delete a rule to stop it. Use the toggle next to each rule to turn it off, then back on later if you need it.

Ready to make your first one? Start with Redirects — they’re the easiest.