# VNetArmor rate limits
RULE=public_trust_pages_bypass1
PRIORITY=1
ACTION=ALLOW
CHAIN=STOP
IF PATH=/privacy.html

RULE=public_trust_pages_bypass2
PRIORITY=1
ACTION=ALLOW
CHAIN=STOP
IF PATH=/security.html

RULE=public_metadata_bypass
PRIORITY=1
ACTION=ALLOW
CHAIN=STOP
IF PATH=/robots.txt

RULE=sitemap_bypass
PRIORITY=1
ACTION=ALLOW
CHAIN=STOP
IF PATH=/sitemap.xml

RULE=well_known_bypass
PRIORITY=1
ACTION=ALLOW
CHAIN=STOP
IF PATH_PREFIX=/.well-known/

RULE=favicon_bypass
PRIORITY=1
ACTION=ALLOW
CHAIN=STOP
IF PATH=/favicon.ico

RULE=assets_bypass
PRIORITY=3
ACTION=ALLOW
CHAIN=STOP
IF PATH_PREFIX=/assets/

RULE=static_bypass
PRIORITY=2
ACTION=ALLOW
CHAIN=STOP
IF PATH_PREFIX=/static/

RULE=health_bypass
PRIORITY=1
ACTION=ALLOW
CHAIN=STOP
IF PATH=/health

RULE=rl_contact_form
ACTION=BLOCK
LIMIT=5
WINDOW_SEC=300
KEY=IP
IF PATH=/api/contact

RULE=rl_contact_burst
ACTION=BLOCK
LIMIT=2
WINDOW_SEC=20
KEY=IP
IF PATH=/api/contact

RULE=docs_root_bypass
PRIORITY=1
ACTION=ALLOW
CHAIN=STOP
IF PATH=/docs/

RULE=docs_assets_bypass
PRIORITY=1
ACTION=ALLOW
CHAIN=STOP
IF PATH_PREFIX=/docs/assets/

RULE=docs_search_bypass
PRIORITY=1
ACTION=ALLOW
CHAIN=STOP
IF PATH_PREFIX=/docs/search/

RULE=docs_sitemap_bypass
PRIORITY=1
ACTION=ALLOW
CHAIN=STOP
IF PATH=/docs/sitemap.xml

####################

RULE=rl_root
ACTION=BLOCK
LIMIT=30
WINDOW_SEC=30
KEY=IP
IF PATH=/

RULE=rl_login
ACTION=BLOCK
LIMIT=10
WINDOW_SEC=60
KEY=IP
IF PATH=/api/login

RULE=rl_php_probe
ACTION=BLOCK
LIMIT=5
WINDOW_SEC=60
KEY=IP
IF PATH=.php

RULE=rl_raw
ACTION=BLOCK
LIMIT=30
WINDOW_SEC=30
KEY=IP
IF PATH=/raw

RULE=rl_form
ACTION=BLOCK
LIMIT=30
WINDOW_SEC=30
KEY=IP
IF PATH=/form

RULE=rl_large
ACTION=BLOCK
LIMIT=20
WINDOW_SEC=30
KEY=IP
IF PATH=/large

RULE=rl_admin
ACTION=BLOCK
LIMIT=10
WINDOW_SEC=60
KEY=IP
IF PATH=/admin

RULE=rl_internal
ACTION=BLOCK
LIMIT=10
WINDOW_SEC=60
KEY=IP
IF PATH=/internal

RULE=rl_portal_Dashboard
ACTION=ALLOW
LIMIT=10
WINDOW_SEC=60
KEY=IP
IF PATH=/dashboard

