note 60742 added to security.hiding

From: Date: Sun, 15 Jan 2006 18:13:38 +0000
Subject: note 60742 added to security.hiding
Groups: php.notes 
Request: Send a blank email to php-notes+get-101858@lists.php.net to get a copy of this message
This is an easy script that will ban the ip, for the current site you are on forexample(index.php) This easy script will just ban from 1 site, but you can insert the script in the other sites you have on your homepage. So here is the script <?php $ip = "The ip you will ban"; if ( $ip == $_SERVER['ADDR_REMOTE'] ) echo "You are banned from this site!"; ?> ---- Manual Page -- http://www.php.net/manual/en/security.hiding.php Edit -- http://master.php.net/manage/user-notes.php?action=edit+60742 Delete: added to the manual -- http://master.php.net/manage/user-notes.php?action=delete+60742&report=yes&reason=added+to+the+manual Delete: bad code -- http://master.php.net/manage/user-notes.php?action=delete+60742&report=yes&reason=bad+code Delete: spam -- http://master.php.net/manage/user-notes.php?action=delete+60742&report=yes&reason=spam Delete: useless -- http://master.php.net/manage/user-notes.php?action=delete+60742&report=yes&reason=useless Delete: non-english -- http://master.php.net/manage/user-notes.php?action=delete+60742&report=yes&reason=non-english Delete: already in docs -- http://master.php.net/manage/user-notes.php?action=delete+60742&report=yes&reason=already+in+docs Delete: other reasons -- http://master.php.net/manage/user-notes.php?action=delete+60742&report=yes Reject -- http://master.php.net/manage/user-notes.php?action=reject+60742&report=yes Search -- http://master.php.net/manage/user-notes.php

« previous php.notes (#101858) next »