<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom"><title>Peakhour.IO - Rules Engine</title><link href="https://www.peakhour.io/" rel="alternate"/><link href="https://www.peakhour.io/feeds/tag/rules-engine.atom.xml" rel="self"/><id>https://www.peakhour.io/</id><updated>2026-12-05T11:10:00+11:00</updated><entry><title>Count one kind of request and apply the limit to another</title><link href="https://www.peakhour.io/blog/granular-rate-limits-with-zones/" rel="alternate"/><published>2026-12-05T11:10:00+11:00</published><updated>2026-12-05T11:10:00+11:00</updated><author><name>Peakhour</name></author><id>tag:www.peakhour.io,2026-12-05:/blog/granular-rate-limits-with-zones/</id><summary type="html">&lt;p&gt;Count failed sign-ins separately from normal use, or give each authenticated API client its own rate limit.&lt;/p&gt;</summary><content type="html">&lt;p&gt;A busy sign-in page may be doing just what a shop wants. A run of failures calls for a closer look. A Peakhour rate-limit zone is a named counter that can track just those failed attempts. A later request can be checked against the counter before asking the application to handle another sign-in.&lt;/p&gt;
&lt;p&gt;In 2023 we added more ways to group traffic, including keys based on request headers, cookies and network fingerprints. The January 2024 Advanced Rate Limiting article described how to set the filter, grouping and mitigation separately. Later in 2024, the dashboard gained a dedicated &lt;strong&gt;Check zone&lt;/strong&gt; action and the proxy added support for checking limits after the WAF has evaluated a request.&lt;/p&gt;
&lt;h2&gt;Count failures after the application replies&lt;/h2&gt;
&lt;p&gt;Set a response rule to add a failed sign-in to the zone. A request rule can then check the zone using the same grouping and apply the configured action when the threshold is reached. Choose the grouping to match who should share a limit. For an API, that could be an authenticated client. Two clients in one office can then have separate limits even when they share a public IP address.&lt;/p&gt;
&lt;p&gt;Rules run at different points as Peakhour handles a request. A response rule can see the outcome from the application. A late request rule can use the result from the web application firewall (WAF).&lt;/p&gt;
&lt;p&gt;&lt;a href="https://www.peakhour.io/docs/tutorials/advanced-rate-limiting/"&gt;Advanced Rate Limiting with Zones&lt;/a&gt; · &lt;a href="https://www.peakhour.io/blog/introducing-advanced-rate-limiting/"&gt;Original Advanced Rate Limiting article&lt;/a&gt; · &lt;a href="https://www.peakhour.io/releases/"&gt;Release history&lt;/a&gt;&lt;/p&gt;</content><category term="Product Updates"/><category term="Rate Limiting"/><category term="Rules Engine"/><category term="API Security"/><category term="Bots &amp; Account Abuse"/><category term="Application &amp; API Security"/></entry><entry><title>Reuse the same list across edge rules</title><link href="https://www.peakhour.io/blog/reusable-rule-lists/" rel="alternate"/><published>2026-12-05T11:10:00+11:00</published><updated>2026-12-05T11:10:00+11:00</updated><author><name>Peakhour</name></author><id>tag:www.peakhour.io,2026-12-05:/blog/reusable-rule-lists/</id><summary type="html">&lt;p&gt;Update a partner’s IP ranges, a set of page paths or a group of network numbers in one Peakhour Rule List, and every rule that uses it picks up the change.&lt;/p&gt;</summary><content type="html">&lt;p&gt;When a partner changes its IP ranges, you may need to update both a firewall rule and a rate limit that applies to their traffic. A Rule List stores those addresses under one name. Each rule can refer to the same list, and you can make the next address change in one place.&lt;/p&gt;
&lt;p&gt;Earlier custom access rules let you enter an IP address or range for a domain. We added reusable IP lists to the dashboard in 2022. In July 2024, the same editor gained lists for text and whole numbers. A text list can hold page paths, and a number list can hold the identifiers assigned to internet networks.&lt;/p&gt;
&lt;p&gt;One rule might use the partner list to decide who can reach an integration. Another might use it to set how many requests those partners can send. Before editing the list, check which rules use it. An address you remove stops matching the list in both places.&lt;/p&gt;
&lt;p&gt;Open &lt;strong&gt;Rule Lists&lt;/strong&gt; in the domain dashboard to create a list. The &lt;a href="https://www.peakhour.io/docs/how-to-guides/configuration/rule-lists/"&gt;Rule Lists guide&lt;/a&gt; shows how to set the type and reference the list in a rule.&lt;/p&gt;
&lt;p&gt;&lt;a href="https://www.peakhour.io/releases/"&gt;Release history&lt;/a&gt;&lt;/p&gt;</content><category term="Product Updates"/><category term="Rules Engine"/><category term="Configuration"/><category term="Firewall"/><category term="Application &amp; API Security"/></entry><entry><title>Send part of your site to a different server</title><link href="https://www.peakhour.io/blog/edge-rules-request-response-phases/" rel="alternate"/><published>2026-12-05T11:00:00+11:00</published><updated>2026-12-05T11:00:00+11:00</updated><author><name>Peakhour</name></author><id>tag:www.peakhour.io,2026-12-05:/blog/edge-rules-request-response-phases/</id><summary type="html">&lt;p&gt;Move a help centre or another section to a new server while keeping its public URLs. Peakhour rules let you change the path, choose the server and adjust the response at the right step.&lt;/p&gt;</summary><content type="html">&lt;p&gt;You can move a help centre to a new server and keep every &lt;code&gt;/help/&lt;/code&gt; link working. A Peakhour rule can send those requests to the new server while the shop, sign-in and other parts of the site keep going to their usual servers.&lt;/p&gt;
&lt;p&gt;Peakhour processes a request in steps called rule phases. The load-balancing phase chooses where the request goes. If the help server expects a different path, a rewrite can change the path Peakhour uses while the visitor keeps the original link. Request headers carry details to the server. Response headers carry details back to the browser. Peakhour expanded the rules available at those steps in 2023. &lt;a href="https://www.peakhour.io/docs/explanation/configuration/phase_flow/"&gt;Request and response flow&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;The single Rules view we added in 2024 shows where each rule runs. If a help article goes to the wrong server after the move, start with the rewrite, then check which rule chose the server. You can change the order of rules within a phase in that same view.&lt;/p&gt;
&lt;p&gt;The &lt;a href="https://www.peakhour.io/docs/reference/rules/phases/"&gt;rule phases reference&lt;/a&gt; lists the actions available in each phase.&lt;/p&gt;
&lt;p&gt;See the &lt;a href="https://www.peakhour.io/releases/"&gt;Peakhour release history&lt;/a&gt; for other changes.&lt;/p&gt;</content><category term="Product Updates"/><category term="Rules Engine"/><category term="Routing"/><category term="Configuration"/><category term="Performance &amp; Delivery"/></entry><entry><title>Give checkout, catalogue and API traffic their own rules</title><link href="https://www.peakhour.io/blog/wirefilter-edge-rules/" rel="alternate"/><published>2026-12-05T11:00:00+11:00</published><updated>2026-12-05T11:00:00+11:00</updated><author><name>Peakhour</name></author><id>tag:www.peakhour.io,2026-12-05:/blog/wirefilter-edge-rules/</id><summary type="html">&lt;p&gt;Wirefilter lets Peakhour apply a rule to one part of a site. Cache catalogue pages, give sign-in its own request limit, or apply a security check to a specific API.&lt;/p&gt;</summary><content type="html">&lt;p&gt;An online shop can serve catalogue pages, checkout and an API from the same website address. A catalogue page can often be saved and reused for several visitors. A checkout depends on the shopper’s cart. You can give each part of the site its own rule, so a performance change on the catalogue leaves checkout behaviour alone.&lt;/p&gt;
&lt;p&gt;In 2022, we added Wirefilter, the language Peakhour uses to describe which requests a rule applies to. You choose a condition and the action to take when it matches. This condition matches page or file requests made with &lt;code&gt;GET&lt;/code&gt; under &lt;code&gt;/catalogue/&lt;/code&gt;:&lt;/p&gt;
&lt;div class="highlight"&gt;&lt;pre&gt;&lt;span&gt;&lt;/span&gt;&lt;code&gt;starts_with(http.request.uri.path, &amp;quot;/catalogue/&amp;quot;) and http.request.method == &amp;quot;GET&amp;quot;
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;

&lt;p&gt;Use a condition like this to set caching for the catalogue. You can use the same language to give sign-in its own request limit or apply a security check to an API. If several rules rely on the same set of values, put those values in a shared list so a single edit updates every rule that refers to it. &lt;a href="https://www.peakhour.io/docs/configuration/rules/"&gt;Rules engine guide&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;We added expression validation to the dashboard and API so mistakes can be caught when you save a rule. The edge evaluates the filter during the phase you choose. Request fields are available early. A condition that needs the origin’s HTTP status has to run in a response phase, after the status is available. The &lt;a href="https://www.peakhour.io/docs/reference/rules/language/"&gt;Wirefilter language reference&lt;/a&gt; shows the fields and operators you can use.&lt;/p&gt;
&lt;p&gt;See the &lt;a href="https://www.peakhour.io/releases/"&gt;Peakhour release history&lt;/a&gt; for how the rules engine developed.&lt;/p&gt;</content><category term="Product Updates"/><category term="Rules Engine"/><category term="Caching"/><category term="Application Security"/><category term="Application &amp; API Security"/><category term="Performance &amp; Delivery"/></entry></feed>