You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If the user types www.reddit.com, the request would be blocked and an error would be returned.
However, if he types www.ReDDit.com, the request would bypass the restriction and just be accepted because the string is not equal (however the resolved ip from the dns is the reddit server).
@elazarl should we just ignore cases like this? Should we introduce another function where the check is explicit (calling it something like InsensitiveDstHostIs? Or should we directly modify the current one to do a case insensitive check?
The text was updated successfully, but these errors were encountered:
Currently the
DstHostIs
handler is implemented like this:Suppose we use some handler like this one to block all the requests made to the target host:
If the user types
www.reddit.com
, the request would be blocked and an error would be returned.However, if he types
www.ReDDit.com
, the request would bypass the restriction and just be accepted because the string is not equal (however the resolved ip from the dns is the reddit server).@elazarl should we just ignore cases like this? Should we introduce another function where the check is explicit (calling it something like
InsensitiveDstHostIs
? Or should we directly modify the current one to do a case insensitive check?The text was updated successfully, but these errors were encountered: