just try with $_SERVER['REMOTE_ADDR'] it gives ip of client machine

----- Original Message ----
From: Randal Rust <[EMAIL PROTECTED]>
To: NYPHP Talk <[email protected]>
Sent: Thursday, February 28, 2008 4:44:57 AM
Subject: [nyphp-talk] Urgent: Help in Defending Attack

we are getting hundreds of hits per minute from what appear to be fake
IP addresses. i am currently writing a script that will send these
requests to an error page prior to making the database connection.

i am doing an explode() on the $_SERVER['REMOTE_HOST]  to get the
first part of the IP. Does that make sense?

this is only temporary fix. i'll need to come up with something more permanent.

-- 
Randal Rust
R.Squared Communications
www.r2communications.com
_______________________________________________
New York PHP Community Talk Mailing List
http://lists.nyphp.org/mailman/listinfo/talk

NYPHPCon 2006 Presentations Online
http://www.nyphpcon.com

Show Your Participation in New York PHP
http://www.nyphp.org/show_participation.php






      
____________________________________________________________________________________
Looking for last minute shopping deals?  
Find them fast with Yahoo! Search.  
http://tools.search.yahoo.com/newsearch/category.php?category=shopping
_______________________________________________
New York PHP Community Talk Mailing List
http://lists.nyphp.org/mailman/listinfo/talk

NYPHPCon 2006 Presentations Online
http://www.nyphpcon.com

Show Your Participation in New York PHP
http://www.nyphp.org/show_participation.php

Reply via email to