To launch a detector: ./hsloader 0.detectUA.html To launch a spoofer: ./hsloader 0.detectUA.html 0.spoofUA.js Blog post: http://engineering.shapesecurity.com/2015/01/detecting-phantomjs-based-visitors.html