Better HN
topnewbestaskshowjobs
Log inSign up

blackjpi

9 karma · joined May 29, 2019 (7y ago) · 2 submissions

Submissions

comment 2mo ago · link · parent

I don’t think I would use a 301 permanent redirect for this sort of thing. If you later want to switch from GitHub to some other provider, software that aggressively caches permanent redirects (like browsers) will remember the old redirect to GitHub, especially since you don’t have any cache control headers set. Maybe not as large a concern will CLI tools, but something to be aware of as this has bit me in the past.

comment 3y ago · link · parent

In fairness, it was file extension spoofed[1] exe made to look like a PDF file. When sent to someone who frequently downloads and opens PDFs as part of their job, it would be a very easy mistake to make, especially for the unaware to this attack vector.

[1] https://www.malwarebytes.com/blog/news/2016/09/lesser-known-...