-
Notifications
You must be signed in to change notification settings - Fork 3
Support traps serving .jpg, .png etc. #28
Comments
Perhaps any filename extension. Then it could be used to replace web bug type of Canarytokens (so there would be no need to change already planted tokens but just the server). |
Yup. Would it be a good idea to make trap URLs return 404 (Not Found) instead of 200 (OK)? I don't know if it's needed at all, but maybe that way we would avoid unintentionally fuzzing JPG parsers and such :) |
What do you mean by unintentionally fuzzing JPG parsers? |
It would be unexpected if an URL with a |
@raimue explained it well. I'm actually not too worried about JPEG, but some less battle-hardened parsers for more exotic formats might have problems. Other status code choices include 401 (Unauthorized) and 403 (Forbidden). Returning 451 (Unavailable For Legal Reasons) would be funny though ;) |
Now any trap URL path can be suffixed with a string that begins with either "." or "/". Also query strings are supported. These suffixes (path suffix + query string) are stored for potential later use. Implements changes suggested in #28.
Commit e842d4b is now deployed to the live site. It modifies trap URLs to return status code 404. Moreover we now support trap URL suffixes, which allows appending stuff to the trap URL path as long as the additional part starts with The suffixes are stored for potential future use. For example Feel free to try it out! There is currently no particular support for this functionality in the UI side, but it's probably still useful. |
Support traps serving .jpg, .png etc. as some services and bots only watch for images.
Suggested by https://twitter.com/raimue/status/794558042255851520.
The text was updated successfully, but these errors were encountered: