Hi,
Okay, let's go through this..
* the script grabs the visitors ip & a passed parameter named 'port' (via get)
I added two other paramaters so that I could test this inside my network, and
left them there for you. If you set the test = 1 you can put and IP in
the get as well.
* the script uses fsockopen (or similar) command to open a connection
to the visitor ip + passed port
That's a done deal
* IF the connection is open, the script should also note how long it
took for the connection to open (in ms),
Using the function microtime for this, as requested, you can see the stats
on this function at the php.net site
http://us4.php.net/microtime
Now you have there "open" which is exactly what I'm measuring, not to
close and move on.. open
and then using the example
from the question above, check the visitor IP against a number of
remote databases whether it was rbled.
* the script should then generate the results on the screen (printf or echo)
okay, well that's what this does. I added two sites to his example,
pulled some stuff, added a few things like html formating functions so
you can change the
page to look as you want it too .. and this should be a done deal.
f you have any questions on it, just drop a Clarification Request and
I'll look into it for you. Your fresh baked php is at :
http://68.15.21.151/uploads/researchers/blockedby.zip
word of caution, some how, make sure that this isn't used by several
thousand a day, as these services offered by the rbls are on volentary
bandwidth and dababases.
thanks,
webadept-ga |