![]() |
![]() |
![]() |
||||
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. |
![]() ![]() |
|
Discuss what's fucking going on, and which programs are best and worst. One-time "program" announcements from "established" webmasters are allowed. |
|
Thread Tools |
![]() |
#1 |
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 |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#2 |
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 |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#3 |
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... ![]() |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#4 |
♥ ♦ ♣ ♠
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." |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#5 | |
Confirmed User
Join Date: Jan 2002
Location: In the walls of your house.
Posts: 3,985
|
Quote:
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 |
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#6 |
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 |
![]() |
![]() ![]() ![]() ![]() ![]() |