0

Im working on a little script to detect phantomjs crawler on our website. One way to detect phantoms is to ask for the installed plugins with.

navigator.plugins

But its possible to overwirte the function. How would you detect if the function has been manipulated? Is there a way to figure it out?

Jurudocs
  • 8,595
  • 19
  • 64
  • 88

1 Answers1

1

This has been answered here. Check if a global property/function has been overwritten in JavaScript

But the short answer is you can't. If you write a function to test another function then someone could also overwrite your test.

Community
  • 1
  • 1
dave.zap
  • 491
  • 4
  • 13