Each custom rule has a Method field. It decides which kinds of HTTP requests the rule applies to on its path. The field is in Aegisify WAF → WAF Settings → Custom Rules.
What the methods mean
- ANY (default): the rule applies to every method on the path.
- GET: reading a page or resource.
- POST: submitting a form or creating data. Most login, comment, and checkout traffic uses POST.
- PUT / PATCH: updating existing data, common in REST APIs.
- DELETE: removing data through an API.
- HEAD: like GET but returns only headers. Monitoring tools use it.
- OPTIONS: browser “preflight” checks before cross-origin API calls.
Why narrow the method?
Most rules are written for one type of activity. A rule meant to watch login submissions does not need to match people simply loading the login page. Choosing POST for that rule:
- Reduces false positives.
- Keeps logs focused on the activity you care about.
- Avoids interfering with crawlers or monitors that send GET or HEAD.
Examples
- Block
DELETErequests to a custom API path that should never delete anything publicly. - Log
POSTrequests to/wp-login.phpto observe login attempts. - Leave ANY when a path should never be reached at all, such as an abandoned endpoint.
Related: Path pattern matching, Rule actions.
