Caddyfile Query‑String Ban
Configure your Caddyfile to reject unauthorized query strings and only allow whitelisted parameters.
Patch your Caddyfile to reject query strings and whitelist any required parameters.
Summary
The author has decided to enforce a blanket ban on query strings on his website, implemented in the Caddyfile. The rule rejects any URL that contains a question mark unless the parameter is explicitly whitelisted. Currently the site does not use any query strings, so the ban will not affect existing links. In the past the author used cache‑busting parameters such as ?t=… and ?h=… on stylesheet URLs, but he has chosen to break those requests rather than keep them. If he ever needs to introduce query strings again, only known parameters will be allowed. The change is purely a configuration tweak in the Caddyfile and does not involve any code changes. Users who try to append arbitrary query strings will receive a 400 response. The author invites readers to test the rule by adding a query string to the site URL.
Key changes
- Blanket ban of query strings via Caddyfile
- Only allow known parameters if needed
- No query strings currently used
- Past cache‑busting parameters removed
- 400 response for unauthorized query strings
- Invite to test by adding query string