Re:Firefox and IE's "View source" can be spoofed to show any...
by dave1010uk on Thursday September 08, 2011 @02:09PM
(#2974970)
Depending on how well your terminal deals with things like high unicode characters and RTL, I wonder if you could trick curl. You could also send the curl user agent harmless HTML and send Firefox / IE user agents a nasty exploit - that would probably fool me for a while.
[ Parent
| on HN ]
Re:Firefox and IE's "View source" can be spoofed to show any...
by code_duck on Thursday September 08, 2011 @10:56PM
(#2976594)
You don't have to view the output in a terminal, though - generally I wouldn't if I was really trying to look at a file.
Server side user agent discrimination is a good point. One has have the option to send his or her own lies regarding that, though. There's always a a way to follow whatever script path to its various ends...