2 ms·
This would have been the ultimate trump card back in the days when websites tried to prevent people from stealing their JavaScript and images by disabling thing
by pak 15y ago
This would have been the ultimate trump card back in the days when websites tried to prevent people from stealing their JavaScript and images by disabling things like right click and using twiddly bits of obfuscation. View source, eh? There is no source, punk!
Of course, the Link: header hadn't even been proposed yet, and the whole "DOM scripting" movement plus tools like Firebug/Webkit inspector has turned obfuscation of web content into a pointless exercise. So, like the author says, this is just a fun parlor trick.
- mathias 15y agoFWIW, the `Link` HTTP header is defined in RFC 5988: http://tools.ietf.org/html/rfc5988 http://tools.ietf.org/html/rfc5988
- pak 15y agoRight, proposed in October 2010. It would have been unfair of me to pick on IE6 for not supporting it. The IE6 era is when I most vividly remember javascriptsource.com and friends touting things like onclick="alert('Not allowed!'); return false" as ways to "protecting" your content.