Advertisement
Search the Community
Showing results for tags 'ip'.
-
Hey guys, REPLACE " ::::: " WITH A NEW LINE (ENTER) This will be a short tutorial on how to IP secure your Admin CP. It is really simple and it only requires a little of PHP. ----------------------------------------------------------------------------------------------------- Requirements : FTP ----------------------------------------------------------------------------------------------------- Difficulty : Medium / Hard But, it will keep everyone out of the ACP login page about 98%. ----------------------------------------------------------------------------------------------------- If you need any help, contact me : Skype : pandaretail AIM : haxorfatal ----------------------------------------------------------------------------------------------------- First, go to the admin folder ----------------------------------------------------------------------------------------------------- Second, Open the index.php file in notepad (view/edit in FTP (right click)) It should look like this : ----------------------------------------------------------------------------------------------------- Third, add " $ip = $_SERVER['REMOTE_ADDR']; ::::: if ($ip == "IP HERE") { " right under " <?php ". Add an " ?> " right under " exit(); " , then add " <?php ::::: }else{ ::::: ?> " IF YOU WANT MORE THAN 1 IP(s) TO BE ABLE TO USE THE ADMIN CP, PUT : " if ($ip == "IP HERE" || $ip == "OTHER IP" || $ip == "OTHER IP") { " AND JUST KEEP ADDING " || $ip == "" " AFTER THE IP BEFORE IT. Should look like this : ----------------------------------------------------------------------------------------------------- Fourth, add you're own HTML code under the "else" statement (whatever you want the people to see if they do NOT have the ip that is put in the PHP code). ----------------------------------------------------------------------------------------------------- Fifth, end it with " <?php ::::: } ::::: ?> " Should look like this : ----------------------------------------------------------------------------------------------------- HOW TO CODE SHOULD FULLY LOOK : WITH 1 IP ONLY : MORE THAN 1 IP :
-
80 downloads
[b]Demo Username:[/b] admin [b]Demo Password: [/b]admin Easily ban IP’s and classes for a determined period of time or permanently. Integrate using PHP or JavaScript. Very easy to use. The script doesn’t require a MySQL database. [b]Integration[/b] [php] PHP <?php include "ban/ban.php"; ?> Javascript <script src="ban/ban.js" type="text/javascript"></script> [/php]-
- codecanyone
- easy
-
(and 2 more)
Tagged with: