Register for your free account! | Forgot your password?

You last visited: Today at 15:16

  • 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...
05/30/2010 - CO2 PServer Guides & Releases - 10 Replies
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 need to edit... all should be simple to understand.. $dbhost = "localhost"; $dbname = "coproj"; $dbuser = "root";
[Release]CoEmu V2 Reg page
02/19/2010 - CO2 PServer Guides & Releases - 7 Replies
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 http://i85.servimg.com/u/f85/14/45/17/86/image11.jpg =D Pleas do not flame and press thanks if you like it
[Release] Reg Page For CoEmu v2
05/29/2009 - CO2 PServer Guides & Releases - 2 Replies
i have done with the reg page is work fine and i test it and work so download and test it must work great
[Release]Reg page for server without sql
05/02/2009 - CO2 PServer Guides & Releases - 18 Replies
ok here is a reg page for a server with .ini or .acc or ... accounts: __________________________________________________________ how to use? change define ("AccountFilesPath", "acc\\"); to your server account folder like define ("AccountFilesPath", "C:\server\acc\\"); to your source-account folder localtion change at define ("AccountFilesEnding", ".acc"); the .acc to the ending for u account files
[Release] Reg-Page
01/10/2009 - CO2 PServer Guides & Releases - 4 Replies
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 pass"); If ($Server) { If (IsSet($_POST)) {



All times are GMT +1. The time now is 15:16.


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.