You can't really do it in the general case.
I'd say the solution is - ensure that people cannot gain any ADVANTAGE by using macros/scripts, but can still use them.
Design your game so that there's no advantage in continually visiting the web site - rather, make it so that things "Keep happening" in the game, even when the user isn't physically present.
Then there's no incentive to use macros/scripts.
Mark