[NTLUG:Discuss] PHP revisited:need more info please

m m llliiilll at hotmail.com
Mon Feb 24 09:50:33 CST 2003








>From: Rob Apodaca <rob.apodaca at attbi.com>
>Reply-To: NTLUG Discussion List <discuss at ntlug.org>
>To: NTLUG Discussion List <discuss at ntlug.org>
>Subject: Re: [NTLUG:Discuss] PHP revisited:need more info please
>Date: Fri, 21 Feb 2003 22:16:50 -0500
>
>How about:
>
><?
>function die_email ($mesg) {
>	$email = "yourself at wherever.com";
>	mail("$email", "Bad guys on web site", "$mesg", "$email");

can I have the forth variable just a string only instead of email address on 
php3?
I have tried, no luck! it seems must be "From: xxx at xxx.xxx" format not just 
any string.

any have glue?

thanks.


>	die ("$mesg");
>}
>
>foreach ($HTTP_GET_VARS as $secvalue) {
>      if (eregi("<[^>]*script*\"?[^>]*>", $secvalue)) {
>          die_email ("I don't like you...");
>      }
>}
>?>
>
>You could also put more useful information in the email like the ip address 
>of the offender which you could add to an htaccess file to deny future 
>access to your site.
>
>Hope it helps
>Cheers,
>-rob
>
>_______________________________________________
>https://ntlug.org/mailman/listinfo/discuss


_________________________________________________________________
Tired of spam? Get advanced junk mail protection with MSN 8. 
http://join.msn.com/?page=features/junkmail




More information about the Discuss mailing list