Skip to content

Add parameter block-when-referrer-not-parsable to plugin referer-restriction #13110

@mueckl

Description

@mueckl

Description

I want to block request with an invalid referer-header.

At the moment not parsable referrers are treated like empty referrer values.
see

https://github.com/apache/apisix/blame/dca582e3bd49665531509c51880dcb6a131601df/apisix/plugins/referer-restriction.lua#L114

I want to configure that empty referrers are ok (with an additional black- or white-list), but malformed / malicious referrers-strings are blocked

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    Status

    📋 Backlog

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions