Welcome to the GoFuckYourself.com - Adult Webmaster Forum forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact us.

Post New Thread Reply

Register GFY Rules Calendar Mark Forums Read
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >
Discuss what's fucking going on, and which programs are best and worst. One-time "program" announcements from "established" webmasters are allowed.

 
Thread Tools
Old 03-14-2003, 06:53 PM   #1
Paraskass
Confirmed User
 
Join Date: May 2002
Location: QC
Posts: 5,829
IP detector script

hey all
is there a free script i can get for my site which tracks incoming traffic and lists them by domain and IP so that i can avoid hitbots. I use lana and this isnt' a feature right now... So anybody can give me a code that writes to a txt or php file or something... Or whatever...

thanks
__________________
Paraskass is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 03-14-2003, 06:57 PM   #2
NetRodent
Confirmed User
 
Join Date: Jan 2002
Location: In the walls of your house.
Posts: 3,985
Just use your apache log files.

Better yet, rewrite your log file directive so that it logs not only the host but the x-forward-for header as well.
__________________
"Every normal man must be tempted, at times, to spit on his hands, hoist the black flag, and begin slitting throats."
--H.L. Mencken
NetRodent is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 03-14-2003, 10:29 PM   #3
Paraskass
Confirmed User
 
Join Date: May 2002
Location: QC
Posts: 5,829
hummm...

i forgot to mention i suck with writing and rewriting...
anything i can download...
__________________
Paraskass is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 03-14-2003, 10:57 PM   #4
Voodoo
♥ ♦ ♣ ♠
 
Voodoo's Avatar
 
Industry Role:
Join Date: Sep 2002
Posts: 10,592
The Unattainable is Unknown at Zombo.com.
__________________

"I'm selflessly supporting the common good, but only coincidentally looking out for No.1."
Voodoo is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 03-14-2003, 10:59 PM   #5
NetRodent
Confirmed User
 
Join Date: Jan 2002
Location: In the walls of your house.
Posts: 3,985
Quote:
Originally posted by Paraskass
hummm...

i forgot to mention i suck with writing and rewriting...
anything i can download...
Something you can download, eh?

How about the Apache docs. Read up on them and you'll be able to do it.
__________________
"Every normal man must be tempted, at times, to spit on his hands, hoist the black flag, and begin slitting throats."
--H.L. Mencken
NetRodent is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 03-15-2003, 01:04 AM   #6
NastyJack
Registered User
 
Join Date: Dec 2002
Posts: 1,291
PHP script to capture IP addies:

<?$log_file = "ip.txt";
$ip = getenv('REMOTE_ADDR');
$fp = fopen("$log_file", "a");
fputs($fp, "$iprn");
flock($fp, 3);
fclose($fp);
PRINT("Your IP Address .....$ip was logged.");?>

You need to create a file "ip.txt". Set the attributes to 644 and use the <? php {include 'filename' ;} ?> to call the program or you can use it directly in your php page. It will write to the file and display the address on the screen.

You can also make this work without it writing a file by simply using:

<?$ip = getenv('REMOTE_ADDR');
PRINT("Your IP Address .....$ip was logged.");?>

You can thank Ken at www.workforsex.com for the script!

Regards
NastyJack
NastyJack is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Post New Thread Reply
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >

Bookmarks
Thread Tools



Advertising inquiries - marketing at gfy dot com

Contact Admin - Advertise - GFY Rules - Top

©2000-, AI Media Network Inc



Powered by vBulletin
Copyright © 2000- Jelsoft Enterprises Limited.