News for hackers. Stuff that matters.
Re:Farewell, Building in Public by air7 on Tuesday December 13, 2022 @04:52AM (#33966661)
X-Frame-Options: DENY

Adding this HTTP header makes your site not work if embedded.

Re:Farewell, Building in Public by berjin on Tuesday December 13, 2022 @05:32AM (#33966933)
The embedding is more sophisticated than just an iframe or object tag. Generally they'll proxy the target site to their own origin and strip headers.
Re:Farewell, Building in Public by Klonoar on Tuesday December 13, 2022 @05:39AM (#33967008)
Could you not do a domain check of some kind in the JS payload and just document.write the entire thing with a bigass notice if it's not on your blessed domain?

You'd have to move the domain check in syntax and placement I guess, in an annoying game of cat and mouse... but it'd be something I suppose? Probably not worth it if it's not a large enough return.

Re:Farewell, Building in Public by ilyt on Tuesday December 13, 2022 @08:42AM (#33968680)
Go read the article!

That is trivial to remove via proxying, which author mentioned them doing.

Really, anything you add to the page can be just removed that way. Only thing you can try is to somehow differentiate attacker traffic from normal users but with ubiquity of VPN providers good luck

Re:Farewell, Building in Public by everybodyknows on Tuesday December 13, 2022 @11:27AM (#33971052)
> differentiate attacker traffic from normal users

Many ways to do just that, suggested in recent discussion:

https://news.ycombinator.com/item?id=33952114