# Detecting Phantomjs Based Visitors

DevFeed: [Detecting Phantomjs Based Visitors](<https://devfeed.tech/articles/detecting-phantomjs-based-visitors-42010.md>)

Original publisher: [Read original article](<http://engineering.shapesecurity.com/2015/01/detecting-phantomjs-based-visitors.html>)

Author: F5

Published: 2015-01-22T08:00:00Z

Content type: article

Language: en

Sources: [Shape Security](<https://devfeed.tech/sources/shape-security.md>)

Topics: [Headless Browser](<https://devfeed.tech/topics/headless-browser.md>), [Browser Automation](<https://devfeed.tech/topics/browser-automation.md>)

Tags: [api](<https://devfeed.tech/tags/api.md>), [attacks](<https://devfeed.tech/tags/attacks.md>), [automated](<https://devfeed.tech/tags/automated.md>), [browser](<https://devfeed.tech/tags/browser.md>), [curl](<https://devfeed.tech/tags/curl.md>), [detection](<https://devfeed.tech/tags/detection.md>), [prevent](<https://devfeed.tech/tags/prevent.md>), [techniques](<https://devfeed.tech/tags/techniques.md>)

## AI overview

The article describes seven ways to identify PhantomJS through HTTP headers and browser-side JavaScript. Its Qt-based HTTP stack has distinctive header ordering, casing, compression, and User-Agent values, but proxies can rewrite headers. Client-side checks include User-Agent and plugin data, though PhantomJS can spoof both; a suppressed alert within about 15 milliseconds may indicate automation but inconveniences people. Other signals include PhantomJS 1.x global properties, missing or outdated JavaScript features, and identifiable evaluation stack traces. The authors recommend combining signals with responses such as rendering a dynamic page inert or invalidating the session cookie, while cautioning that a sophisticated adversary can bypass these techniques.

## Source excerpt

We demonstrate techniques for identifying visits by PhantomJS to help prevent automated attacks.