![]() |
php hitbot detection
i have a little php problem.
i just put some hitbot detection script on my tgp, but i cant get it to work right. i inserted a couple of links on my index page with the following code: PHP Code:
PHP Code:
anyone knows why it does not work? |
A couple of things i noticed at a glance...
Maybe this: echo $_SERVER['HTTP_REFERER']; ?> Should be echo urlencode($_SERVER['HTTP_REFERER']); ?> Or possibly this: mail("proxy@domain.com", "Hitbot:", "From: $from\r\n"); should be mail("proxy@domain.com", "Hitbot:", "From: " . $_GET['from'] . "\r\n"); How do you know the variable is being passed to the go.php file? |
as matt said:
only the mail("proxy@domain.com", "Hitbot:", "From: " . $_GET['from'] . "\r\n"); should fix the problem i think, if your server does not support register_globals in the php, otherwise it should work fine.. |
thanks guys!
i changed the mail code and it works fine now :D |
All times are GMT -4. The time now is 02:07 AM. |
Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
© Greenguy Marketing Inc