Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

AEM 6.1. Referrer Filter - Regexp not working


Not applicable

HI everyone,


AEM 6.1.   


I get a 403 Forbidden, on a Post action, because the referrer host is not allowed. My referrer host is:

So I added in the config :


This works as it should, but it leaves it quiet open and I try to narrow it down. But every single regex is not working:




Is this a bug or do I use the wrong regex flavor? How can I narrow it down to  *


Kind regards,



2 Replies


Level 1

When adding the config via OSGI configuration console (manually), add it as

If you save that you'll notice it will be saved as

Which is the correct string for java's Paterrn#compile

Basically, if you are adding config via config files, as you should, you should add it as: