IP ban help

Started on the old forum in January 2012 · view the original in the archive · old links redirect here

7 replies · 495 views · started 14 years ago · 1 min read

6 participants
LadyEnigma Developer · 71 posts #1

how i can ban a single place in Lavalair since the control panel you can not do? Thanks in advance to those who help me

....silence please....

ewanz Developer · 187 posts #2

explain it plezz... i mean more detail.. not understand what yout topic.. 😳

our lfe is simple words.... 😌 http://mygenkz.net ewanz06@yahoo.com

$output="i am NOoob....";
$newfile="ewanz.txt";
$file = fopen ($newfile, "w");
fwrite($file, $output);
fclose ($file); 
ewanz Developer · 187 posts #4

oh yeah... you mean particular place.. for example like in shoutbox.. pm or any place in your site.. you can ban it... 8)

our lfe is simple words.... 😌 http://mygenkz.net ewanz06@yahoo.com

$output="i am NOoob....";
$newfile="ewanz.txt";
$file = fopen ($newfile, "w");
fwrite($file, $output);
fclose ($file); 
LadyEnigma Developer · 71 posts #5

ewanz, Dil I need to ban a single place because I am certain that no one else has the same ip and I need to exclude it from my community, someone can help me?

....silence please....

ajit55u Developer · 157 posts #6

make a page name ip or anything which you want put this code in that & include this page into where you want to bann the user... use this code

<?php $ip = getenv('REMOTE_ADDR'); $blocked = "27.107.123.230"; // Dont Unbann 1 week Replace the x's with the IP address. if (ereg($blocked,$ip)) { echo "You Have Been Banned Reason_______Contact Owner"; exit(); } ?>

They Make Rules & I Break Them

metulj Super moderator Principal · 1,726 posts #7

simple use .htaccess

order Allow,Deny
Deny from [COLOR=#FF0000][B]IP.to.block.here[/B][/COLOR]
Allow from all

It's better to keep your mouth shut and give the impression that you're stupid, than to open it and remove all doubt. ⓣⓗⓔ ⓠⓤⓘⓔⓣⓔⓡ ⓨⓞⓤ ⓑⓔ©ⓞⓜⓔ, ⓣⓗⓔ ⓜⓞⓡⓔ ⓨⓞⓤ ⓐⓡⓔ ⓐⓑⓛⓔ ⓣⓞ ⓗⓔⓐⓡ ! ιη тнєσяу, тнє ρяα¢тι¢є ιѕ α яєѕυℓт σƒ тнє тнєσяу, вυт ιη ρяα¢тι¢є ιѕ тнє σρρσѕιтє.

キノgんイノ刀g 4 ア乇ムc乇 ノ丂 レノズ乇 キucズノ刀g 4 √ノ尺gノ刀ノイリ!

jayarukshanth Newbie · 2 posts #8

ip ban

<?php $ip=$_SERVER['REMOTE_ADDR']; if($ip="xxx.xxx.xxx.xxx") {echo"your ip has been banned!";exit());}; ?>

try this code . And replace your ip in xxx.xxx.xxx.xxx

Sign in to reply.

Similar topics

Keyboard shortcuts

g f
Go to forums
g h
Go to your feed
g m
Go to messages
r
Reply (in a topic)
/
Search
j
Next post
k
Previous post
?
This list
Ctrl/⌘ + Enter
Send what you are writing
Ctrl/⌘ + B / I
Bold / italic while writing
Esc
Close