Register for your free account! | Forgot your password?

You last visited: Today at 09:35

  • Please register to post and access all features, it's quick, easy and FREE!


[release]IP Ban For Reg Page.

Reply
 
Old   #1
 
elite*gold: 20
Join Date: May 2008
Posts: 1,100
Received Thanks: 253
[release]IP Ban For Reg Page.

Here is an Ip Ban for Reg Page All you Do Ip Put At Top Of The Reg Page And Make A File Called IP.dat u Add the Ips in There And it Bans them.
HTML Code:
<?php
$ip = $_SERVER['REMOTE_ADDR'];
$ipArray = preg_replace("#\r\n?|\n#","",file('IP.dat'));  // read the file into an array and remove new line breaks (should cover all OS)
foreach ($ipArray as $ipTest) {
  if (substr_count($ip, $ipTest) != "0") { 
    header('location: /banned.htm');  // the banned display page
    die();
  }
}
?>



Pete1990 is offline  
Thanks
3 Users
Old 09/17/2009, 14:33   #2
 
elite*gold: 0
Join Date: Aug 2008
Posts: 889
Received Thanks: 199
Nice


zbest is offline  
Old 09/17/2009, 22:20   #3
 
elite*gold: 0
Join Date: Sep 2009
Posts: 56
Received Thanks: 5
Nice nice, i think i can use this
for my site
CooP^TooL is offline  
Old 09/17/2009, 23:48   #4
 
elite*gold: 20
Join Date: May 2008
Posts: 1,100
Received Thanks: 253
Thanks and np


Pete1990 is offline  
Old 09/17/2009, 23:55   #5
 
elite*gold: 0
Join Date: Sep 2009
Posts: 56
Received Thanks: 5
hehe.
Im not good at php, but im trying to learn with dreamweaver XD
CooP^TooL is offline  
Old 09/18/2009, 00:07   #6
 
elite*gold: 20
Join Date: May 2008
Posts: 1,100
Received Thanks: 253
C# is kinda like php.
Pete1990 is offline  
Old 09/18/2009, 00:10   #7
 
elite*gold: 0
Join Date: Apr 2008
Posts: 1,152
Received Thanks: 320
nice release pete
-Shunsui- is offline  
Old 09/18/2009, 00:15   #8
 
elite*gold: 20
Join Date: May 2008
Posts: 1,100
Received Thanks: 253
Ty man.
Pete1990 is offline  
Old 09/18/2009, 00:21   #9
 
elite*gold: 0
Join Date: Sep 2009
Posts: 56
Received Thanks: 5
Quote:
Originally Posted by Pete1990 View Post
C# is kinda like php.
Yeah i know. i can a little php, but not hard coding php


CooP^TooL is offline  
Reply



« [RELEASE] Plain 5017 Client | [RELEASE] 5017 Source »

Similar Threads
[release] reg page...
heres a reg page i dont got no encyrption for the pass or anything cuz i have no clue what the encryption is for it.. but here.. a few things you...
10 Replies - CO2 PServer Guides & Releases
[Release]CoEmu V2 Reg page
I got this from a release by scottdavey I edited it tho :P now the look but the register it self >.< Here is a screen shot ...
7 Replies - CO2 PServer Guides & Releases
[Release] Reg Page For CoEmu v2
i have done with the reg page is work fine and i test it and work so download and test it must work great
2 Replies - CO2 PServer Guides & Releases
[Release]Reg page for server without sql
ok here is a reg page for a server with .ini or .acc or ... accounts: __________________________________________________________ how to use?...
18 Replies - CO2 PServer Guides & Releases
[Release] Reg-Page
ok here is a small regpage it has no style so u can use your own .css datas <?php $Server = MySQL_Connect ("localhost", "root","mysql...
4 Replies - CO2 PServer Guides & Releases



All times are GMT +2. The time now is 09:35.


Powered by vBulletin®
Copyright ©2000 - 2018, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Abuse
Copyright ©2018 elitepvpers All Rights Reserved.