Jump to content

Ryan Williams

New Members
  • Posts

    2
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

Ryan Williams's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. Okies, thanks. Another approach is to use PHP itself in the header to detect whether or not the person has JavaScript enabled before processing the page. Is there any obscure way of doing this, or am I just dreaming? Sorry if my original post was a little convoluted. Basically I just want a statistics include to only be included/called if the user has JavaScript enabled, with the intention of stopping bots from triggering it and thus being included in the statistics. While I know I'll lose tracking of JavaScript users, with bot spam being as bad as it is it seems like a worthy compromise to me and the only largely foolproof way of doing it. Until they start writing bots that can deal with JavaScript. :( :(
  2. Hi, The best way of stopping (spam) robots dead seems to be to require JavaScript. Sadly, most statistics scripts seem to use a PHP include or something like that, which means bots can run amuck. The easiest way of preventing this to me seems to be to somehow make JavaScript be required before that PHP will run, however I'm not sure how to go around this. I know that it's not possible to slip the PHP include between some JavaScript tags due to the whole server/client execution thing, but is there any feasible way to accomplish what I described above? Basically, I'd want JavaScript to include another file that happens to be called test.php (for the sake of this thread). Thanks for any help you guys can offer.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.