"Fossies" - the Fresh Open Source Software archive

Member "bot-trap/forbid.php" of archive bot-trap_0.9.4.tar.gz:


<?php
if(phpversion() >= "4.2.0") 
  {
    extract($_SERVER);
  }
require 'settings.php';
require 'functions.php';
?>

<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<html><head>
<title>403 Forbidden</title>
</head><body>
<h1>Forbidden</h1>
You don't have permission to access this page.
<p>

<?php
if (!is_blacklisted($REMOTE_ADDR))
  {
?>
There are two possible reasons for this:
<ol>
<li>You really aren't supposed to be here.
<li>There is a server misconfiguration.
</ol>

<?php
  }
else
  {
?>
  
You accessed the bad robot booby-trap file /bot-trap/index.php.
This file is hidden from normal users, and /robots.txt 
told you not to go there if you're a robot.  If you are
a human reading this, it is possible that the former
owner of your IP address was using your IP to run a
badly behaved robot.  
<p>
To unban your IP address, 
enter the word "unban" in the form box below and hit enter.
<p>

<form action="/bot-trap/unban.php" method="POST">
 Enter "unban" here: <input type="text" name="unbanme" />
 <input type="submit">
</form>

<?php
  }
?>

<hr>
<address>Apache/1.3.26 Server at <a HREF="mailto:webmaster@danielwebb.us">danielwebb.us</a> Port 80</address>
</body></html>