Later tonight im going to get coffee with brad, and maybe some brain work will come out of it.
Speaking of brad, we had a bit of a geek battle last night. He wrote a script to continuously hit the “bacardi shot” pics, as to increment the counter every 2 seconds. So I wrote this:
if ($_SERVER['REMOTE_ADDR'] == $bradsip){echo "i win. ";}else{OutputWebsite}
It worked, until he began to attack from a different IP. So I had to write a quick program that would detect multiple hits from a single IP, and that IP to a database, and if it happened 5 times in a row, to add the IP to the block list (using the aforementioned line of code)
Geek fights are cool, and so are we. Holla
-Demo

No comments:
Post a Comment