Remove Referer Headers that reference pages on Confluence (NGINX Proxy)

Fabio S February 9, 2017

Is there a way to configure NGINX proxy to remove the referer header when clicking on external links embedded in Confluence pages? I tried to add the following parameters but I'm still seeing the referer header:

proxy_set_header Referer "";

proxy_set_header X-Custom-Referrer "";

1 answer

1 accepted

0 votes
Answer accepted
Timothy
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
February 9, 2017

nginx cannot remove headers from request. It can only blank them.

 

Fabio S February 9, 2017

Thanks Timothy. Should I remove all other "proxy_set_header"?

#proxy_set_header X-Forwarded-Host $host;
#proxy_set_header X-Forwarded-Server $host;
#proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;

Timothy
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
February 9, 2017

That's really up to you. Each of them have specific usage and you'll have to decide on whether to blank them out or not.

Fabio S February 9, 2017

I'm still seeing the referer header and I'm using only

proxy_set_header Accept-Encoding "";

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events