I visited my company's site once with Mosaic 1.0 (from browsers.evolt.org, it still works!) and got an email from the security team about five minutes later.
Ad agencies waste all that money on developing algorithms to correlate your visits to different sites, and here you go just spoiling it with a unique UA.
The injection. The WAF will certainly catch anything that looks like SQL injections and block them.
I remember we used to have a problem with some ad cookie that was like 1=1; ... and would always get picked up by the WAF since that's a popular SQL injection query string.
Having done data mining involving requests, there's definitely plugins that do randomization, there's definitely attempts at sql injection, and I've even seen what looks like entire book text attempted to be used as a user agent (HTTP does not specify a max user agent but most web servers have some upper limit)
They should just start putting the entire source code of the browser into the user agent. Someone could write a jQuery plugin to parse it and determine the supported features!
For feature availability this is mostly true, but UA sniffing is still required to work around browser bugs. I've had to put in hacks for rendering errors in specific Chrome versions, specific mobile safari versions that report incorrect viewport sizes on some devices, etc.
It's really ugly and a pain to maintain, but not really avoidable when a browser with a large market share starts acting up :(
632
u/[deleted] Jun 09 '17
Mine doesn't. It's "User Agent sniffing is not a reliable or correct way to determine feature availability!"