repsheet / repsheet-nginx

The nginx module for Repsheet
Apache License 2.0
82 stars 11 forks source link

Cannot whitelist certain IP's #18

Closed yippibrian closed 9 years ago

yippibrian commented 9 years ago

The repsheet-nginx plugin just decides to block certain IP's in certain error conditions, such as when the XFF value is invalid. You should be able to Whitelist IP's so that they will not block even in such error conditions.

abedra commented 9 years ago

So this should check the whitelist before blocking?

yippibrian commented 9 years ago

Yes, I think so.

abedra commented 9 years ago

Ok, I'll take care of this and #17 tomorrow and cut a new release.

abedra commented 9 years ago

It just occurred to me as I started working on this that I must be missing some other details. If the XFF value isn't a valid IP, what address is the module supposed to lookup on the whitelist?