Log in

View Full Version : PHP/Javascript question...



WickedOne
07-04-2006, 07:55 AM
My question is this - Using PHP, is it possible for me to run a script server side that would detect the use of javascript in the address bar on a client side browser? I ask because I run an online game and we are trying to put an end to people using macros. I know they are using the address bar as a means of sending button presses that have javascript linked to them so I'd like to be able to detect the use and ban upon detection. Any ideas?

Any help is appreciated. Thank you. :)


***EDIT*** Spelling errors.

Twey
07-04-2006, 12:25 PM
No. :)

You must detect macros the same as everyone else: look for page requests that are impossibly close together, and those that are very regularly spaced (to within, say, 400ms accuracy to allow for network lag).

WickedOne
07-04-2006, 01:45 PM
Alright, thank you.