Is there an equivalent of ngx_http_referer_module?
ngx_http_referer_module module is used to block access to a site for requests with invalid values in the “Referer” header field.
Or any way of doing a similar protection in caddy without a module?
Reading the documentation you linked, it looks like the module:
- Reads the
Referer header of an incoming request
- Blocks requests with unwanted values
We can do #1 with Matchers and #2 with
Specifically, you’re looking for the
header matcher and you probably want to send perhaps a status 403.
This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.