Nukemods Forum  
» Log in
User Name:

Password:

Not a member yet?
Register Now!
» Online Users: 58
5 members and 53 guests
climckckwd8here, got2wpoap2gt9si, lux3ctguryallin, nhghgfdumaq4pst, shaqi5kerqlqbot
Most users ever online was 611, 03-21-2008 at 10:10 PM.
» .::.
» .:.

Go Back   Nukemods Forum > General > Open topics

Reply
 
LinkBack Thread Tools Display Modes
Ip banning
Old
  (#1 (permalink))
Junior Member
 
Status: Offline
Posts: 17
Join Date: May 2003
Ip banning - 07-19-2003, 11:16 AM

im not sure yet if anyone has had the back luck of having to place ip banning on there site.However i got a friend that programs these types of boards well.Yesterday i got given a very handy script.Im not sure how this works here.On many boards you banned by ip so you can not logg in to the board right? well this one makes to the user can see any of the site what so ever.In stead when they get when they try in to any part of the site.Note this don't have to be the board can be anypart of the site.They get greeted with a forrbbin page :P.Once more the scipt is only 1kb big.Lobb this in the public html and there banned right off.

anyone wanting to see this script send me an email glennb32@yahoo.com
Im not going to post this up manily cos i really don't want this in the wrong hands.
   
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old
  (#2 (permalink))
Moderator
 
Status: Offline
Posts: 737
Join Date: Nov 2002
07-19-2003, 05:39 PM

Does your friend know how to give a specific user a cookie and then ban through the cookie?

That is the only thing I can think of for AOL users that are problem children without blocking a whole group of AOL users.
   
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old
  (#3 (permalink))
Junior Member
 
Status: Offline
Posts: 9
Join Date: Apr 2003
07-19-2003, 06:21 PM

yea i need something for AOL users also .. down here is the script i found somewhere long time ago but still works perfect

For example: include("banip.php");

Use which script you want, with or without a database. Copy and create a file called banip.php

The following code is for use without a Database. Copy the If statement entirely to add more addresses.

Code:
<?
//Following line used for testing
//echo $REMOTE_ADDR;

if ($REMOTE_ADDR == "1.1.1.1") 
{
echo "

Entry to Denied!</p>";
exit("Your priviliages to view the information contained on this site have been revoked.");
}

if ($REMOTE_ADDR == "0.0.0.0") 
{
echo "

Entry to Denied!</p>";
exit("Your priviliages to view the information contained on this site have been revoked.");
}

?>
The following code is for use with a MySQL Database. Use the SQL code below to create the db on your server. Replace every variable starting with "Your..." with YOUR information.

Code:
<?

//Following line used for testing
//echo $REMOTE_ADDR;

//Put IPs into DB and seach for IP
mysql_pconnect("localhost","YourUserID","YourPassword");
mysql_select_db("YourDatabaseName");

$ipaddress = getenv("REMOTE_ADDR");

$ipresult = mysql_db_query ("YourDatabaseName","SELECT ipaddress FROM IPAddresses WHERE ipaddress='$ipaddress'");
if($ipresult) {
if(mysql_fetch_row($ipresult)) {
echo "

Entry Denied!</p>";
exit("Your priviliages to view the information contained on this site have been revoked.");
}
}

?>
SQL Code: Don't forget to add IP addresses to the table!

Code:
DROP TABLE IF EXISTS IPAddresses;
CREATE TABLE IPAddresses (
  ipaddress char(20) NOT NULL default '0',
  PRIMARY KEY  (ipaddress),
  UNIQUE KEY ipaddress (ipaddress)
) TYPE=MyISAM;
   
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
ip deny
Old
  (#4 (permalink))
Junior Member
 
Status: Offline
Posts: 26
Join Date: Jun 2003
ip deny - 07-19-2003, 07:06 PM

I am new at this stuff. where do you put that include ipban.php file at?
thanks
   
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old
  (#5 (permalink))
Junior Member
 
Status: Offline
Posts: 9
Join Date: Apr 2003
07-19-2003, 07:16 PM

Code:
include("banip.php");
that code should be in header.php file or footer.php because they are required by almost every script on the site so that makes the banned user can't access any part of the site.
also you can put their ip's in the /etc/hosts.deny
and that should block any tcpwrappers including http.

you should make a file with the code up there and name it banip.php and then put the code include("banip.php"); in the header.php file.
   
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
ip banning
Old
  (#6 (permalink))
Junior Member
 
Status: Offline
Posts: 26
Join Date: Jun 2003
ip banning - 07-19-2003, 09:09 PM

thanks for your help.
   
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
new ban
Old
  (#7 (permalink))
Junior Member
 
Status: Offline
Posts: 17
Join Date: May 2003
new ban - 07-23-2003, 03:14 PM

ok because im feeling mean i found this hack off nuke cops.Hey if you want to bann someone at least put some effet in where there such a pain in the ass thats what i say page will look a little something like this

http://www.foxspace.com/glenn2.html

you can download this hacck here http://www.foxspace.com/Banned_Hack_Addon.zip

enjoy :P
   
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Sentinel keeps banning me when I try to embed war counter BunnyNuke Site design 0 03-27-2005 01:20 PM
Banning a user from a nuke site? Dan Open topics 3 02-20-2003 06:53 AM




vBulletin Skin developed by: vBStyles.com


LinkBacks Enabled by vBSEO 3.3.0

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31