Re: How do I ban an ip address please!
| From: | Tyler Longren | Date: | Fri, 24 Nov 2000 02:29:16 +0000 |
| Subject: | Re: How do I ban an ip address please! | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-26891@lists.php.net to get a copy of this message | ||
<?
if ($REMOTE_ADDR == "ip.to.ba.n") {
echo "You've been banned!!!";
}
else {
// continue with code
}
?>
eh?
Tyler
On Thu, 23 Nov 2000, Sandeep Hundal wrote:
> Date: Thu, 23 Nov 2000 18:23:45 -0800 (PST)
> To: php-general@lists.php.net
> From: Sandeep Hundal <sandeep_wde@yahoo.com>
> Subject: [PHP] How do I ban an ip address please!
>
> Hi all,
>
> I'm using Bare Bones bulletin board, and making something akin my own
> version of a message board for articles. I'm tracking all IP
> addresses in a mysql column, but would now also like to add in the
> ability to ban ip address.
>
> Any pointers, pieces of code, help etc??
>
> thanks!
>
>
> /sunny
>
> __________________________________________________
> Do You Yahoo!?
> Yahoo! Shopping - Thousands of Stores. Millions of Products.
> http://shopping.yahoo.com/
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net
> For additional commands, e-mail: php-general-help@lists.php.net
> To contact the list administrators, e-mail: php-list-admin@lists.php.net
>