how do i do the contrary thing? i mean, to allow, not to ban, just ip's i want can entry the page and the rest don't... it could works to restrict changes of account to a certain ip's... do you understand what i mean?
Printable View
how do i do the contrary thing? i mean, to allow, not to ban, just ip's i want can entry the page and the rest don't... it could works to restrict changes of account to a certain ip's... do you understand what i mean?
how do i do the contrary thing? i mean, to allow, not to ban, just ip's i want can entry the page and the rest can't... it could works to restrict changes of account to a certain ip's... do you understand what i mean?
im using mutoolz too where i gonna put it?
very nice
Guys, make in your www folder one file with name .htaccess and type that in him:
where 127.0.0.1 is the ip who want to get ban!Code:Order Allow,Deny
Allow from all
Deny from 127.0.0.1
Or try other method ;)
make one file called banned as .php and type this in him :
where 127.0.0.1 => victim ipCode:<?PHP
$banned_ip = '127.0.0.1';
$guest_ip = $_SERVER['REMOTE_ADDR'];
if($guest_ip == $banned_ip)
{
die("You have been banned from this page, contact administrator");
**
?>
or if u want to ban many ips write this in your php file:
where 127.0.0.1.127.0.0.2 it's victim's ips so u can put many separed with , !Code:<?PHP
$banned_ips = ("127.0.0.1,127.0.0.2");
$guest_ip = $_SERVER['REMOTE_ADDR'];
$ip_list = explode(",", $banned_ips);
foreach($ip_list as $ip)
{
if($guest_ip == $ip)
{
die("You have been banned from this page, contact administrator!");
****
?>
now if u want to include this php file in index page write in
news.php or what page it's first , at first line :
attention if u use MuToolz 2.1F the first lines is:Code:<?
include('banned.php');
?>
set following :Code:<?PHP
//ob_start("ob_gzhandler");
define ("_LOCATION",dirname(__FILE__) . "/");
require(_LOCATION.'_libs/header.php');
if (isset($_GET['read'])) {
...
Code:<?PHP
include('banned.php');
//ob_start("ob_gzhandler");
define ("_LOCATION",dirname(__FILE__) . "/");
require(_LOCATION.'_libs/header.php');
if (isset($_GET['read'])) {
That's All
Guys, make in your www folder one file with name .htaccess and type that in him:
where 127.0.0.1 is the ip who want to get ban!Code:Order Allow,Deny
Allow from all
Deny from 127.0.0.1
Or try other method ;)
make one file called banned as .php and type this in him :
where 127.0.0.1 => victim ipCode:<?PHP
$banned_ip = '127.0.0.1';
$guest_ip = $_SERVER['REMOTE_ADDR'];
if($guest_ip == $banned_ip)
{
die("You have been banned from this page, contact administrator");
**
?>
or if u want to ban many ips write this in your php file:
where 127.0.0.1.127.0.0.2 it's victim's ips so u can put many separed with , !Code:<?PHP
$banned_ips = ("127.0.0.1,127.0.0.2");
$guest_ip = $_SERVER['REMOTE_ADDR'];
$ip_list = explode(",", $banned_ips);
foreach($ip_list as $ip)
{
if($guest_ip == $ip)
{
die("You have been banned from this page, contact administrator!");
****
?>
That's All
Guys, make in your www folder one file with name .htaccess and type that in him:
where 127.0.0.1 is the ip who want to get ban!Code:Order Allow,Deny
Allow from all
Deny from 127.0.0.1
Or try other method ;)
make one file called banned as .php and type this in him :
where 127.0.0.1 => victim ipCode:<?PHP
$banned_ip = '127.0.0.1';
$guest_ip = $_SERVER['REMOTE_ADDR'];
if($guest_ip == $banned_ip)
{
die("You have been banned from this page, contact administrator");
**
?>
or if u want to ban many ips write this in your php file:
where 127.0.0.1.127.0.0.2 it's victim's ips so u can put many separed with , !Code:<?PHP
$banned_ips = ("127.0.0.1,127.0.0.2");
$guest_ip = $_SERVER['REMOTE_ADDR'];
$ip_list = explode(",", $banned_ips);
foreach($ip_list as $ip)
{
if($guest_ip == $ip)
{
die("You have been banned from this page, contact administrator!");
****
?>
That's All