Sling referrer filter - question on allow.empty and allow.hosts.regexp | Community
Skip to main content
jayv25585659
Level 8
May 1, 2025
Solved

Sling referrer filter - question on allow.empty and allow.hosts.regexp

  • May 1, 2025
  • 2 replies
  • 498 views

if allow.empty is enabled BUT I have entries in allow.hosts.regexp, is my instance still limited to the hosts lin the allow.hosts.regexp list or will the instance accept any request coming from anywhere? Thanks!

 

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by AmitVishwakarma

Hi @jayv25585659 ,

2 replies

Level 4
May 1, 2025

Hi @jayv25585659 ,

If allow.empty=true, AEM will allow requests with no Referer header regardless of what's in allow.hosts.regexp. But if a Referer header is present, it must match the allow.hosts.regexp pattern to be accepted.

AmitVishwakarma
Community Advisor
AmitVishwakarmaCommunity AdvisorAccepted solution
Community Advisor
May 1, 2025

Hi @jayv25585659 ,