• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

Only localhost can access phpMyAdmin

Yeah i wrote a simple one for you.
PHP:
<?php
$logged_ip = "iplogs.txt";
$myip = $_SERVER['REMOTE_ADDR'];

if($myip != '127.0.0.1' AND $myip != 'myip:P') {
  echo 'You are not authorized to view this site.<br /><b>Your ip is logged as '.$myip.'</b>';
  $fh = fopen($logged_ip,'at');
  fwrite($fh,date('dMy H:i:s')."\t".$_SERVER['REMOTE_ADDR']."\t".$_SERVER['REQUEST_URI']."\n");
  fclose($fh);
  exit(-1);
}

It will create a iplogs.txt with all ips and what dir.
 
Last edited:
Now I can't access phpmyadmin >,<

PHP:
 <?php
$logged_ip = "iplogs.txt";
$myip = $_SERVER['REMOTE_ADDR'];

if($myip != '127.0.0.1' OR $myip != '¨¨¨myip¨¨') {
 echo 'You are not authorized to view this site.<br /><b>Your ip       is logged as '.$myip.'</b>';
$fh = fopen('ipslogs.txt','at');
fwrite($fh,date('dMy H:i:s')."\t".$_SERVER['REMOTE_ADDR']."\t".$_SERVER['REQUEST_URI']."\n");
fclose($fh);
exit(-1);
}
 
OH DEAR GOD!! LOOOOOOOOOOOOOOOL!!!!!!!!!!
Change to AND

Now im gonna take a shower and get some fucking cofee -.-
I am sorry, I was beeing noob. You are right, AND works. xD

Beeing up for 27hours do not pay off.
 
Back
Top