- Mar 21, 2013
- 24,772
- 31,559
How many people run plugins to randomise the header order?
But as I said, the above was from memory of the "type" of things you can do to detect phantomJS. There are a few more and you can with 100% accuracy detect it (according to the reports). Some are protectable with JS coding to remove, but things like header order would be recompiles of phantomjs or webkit and I think some old QT they are / were using.
The point being, if you want to be undetectable in your automations, phantom is not really the way to do. If you are running tests on your website it might make sense, but what with phantom bugs you would be better with selenium
No, not plugins TO randomize header order. But some plugins do add their signature to the headers. Alexa toolbar changes the user agent name, and others do too, just to give an example.
Again, header order is not mandatory in the HTTP specs, except for the first line (HTTP/version CODE) and the Host: line. Can some header checking be used to filter out referral spam and headless browsers? Maybe, but for specific versions. New versions of Chrome or Firefox may change the headers and you'll break the site if you filter those out.