Skip to content

Update apache.txt#2

Open
mlinton wants to merge 1 commit intobenpturner:masterfrom
mlinton:patch-1
Open

Update apache.txt#2
mlinton wants to merge 1 commit intobenpturner:masterfrom
mlinton:patch-1

Conversation

@mlinton
Copy link

@mlinton mlinton commented Dec 6, 2019

So this change makes the whitelist check a positive instead of a negative. Basic logic here: if the REMOTE_ADD or the X-Forwarded-For address match the whitelist, then continue with the content checking Rewrite rules to match the content of the c2 URIs. If both checks fail then it 404s the request.

I'm also going to add the whitelist for the content list as well to make it easy to switch out the list of URIs, and probably make it easy to proxy multiple engagements at the same time.

So this change makes the whitelist check a positive  instead of a negative.   Basic logic here: if the REMOTE_ADD or the X-Forwarded-For address match the whitelist, then continue with the content checking Rewrite rules to match the content of the c2 URIs.   If both checks fail then it 404s the request.
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