Detecting #PhantomJS (and other headless browsers): https://www.youtube.com/watch?v=95sydbXK_7k
Discovered the #video above while writing this:
https://www.256kilobytes.com/content/show/10884/scriptable-headless-browsers-101-phantomjs-vs-headless-chrome-chromium-vs-headless-firefox