Skip to content

add support for X-Forwarded-For header in IP allow-listing#10

Open
sjoerdhooft wants to merge 1 commit intosplitbrain:mainfrom
sjoerdhooft:feature/add-support-for-X-Forwarded-For
Open

add support for X-Forwarded-For header in IP allow-listing#10
sjoerdhooft wants to merge 1 commit intosplitbrain:mainfrom
sjoerdhooft:feature/add-support-for-X-Forwarded-For

Conversation

@sjoerdhooft
Copy link
Copy Markdown

My wiki is behind AWS Cloudfront, so the original IP address is in the X-Forwarded-For variable in the header. With the code below the IP addresses in the addresses.net.list are also allowed to bypass the check when their IP address is in the X-Forwarded-For variable.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant