filen ser så ledes ud:
ban.php
<?php
$iparray = array("212.242.149.95");
foreach($iparray as $i => $p) {
if($_SERVER['REMOTE_ADDR'] == $p) {
header("location: [ml"][[/url]"http://www.webtjenesten.dk/banned.php[/url][/url]");
exit;
}
}
?>
banned.php
<HTML>
<HEAD><TITLE>webtjenesten.dk</TITLE>
<STYLE>
body, td {font-size: 12pt; font-family: times new roman, times, serif}
h1 {font-weight: normal; font-size: 26pt; font-family: arial, helvetica, sans-serif}
h2 {font-weight: normal; font-size: 18pt; font-family: arial, helvetica, sans-serif}
h3 {font-weight: normal; font-size: 16pt}
h4 {font-weight: normal; font-size: 14pt}
a {text-decoration: none}
a:hover {text-decoration: underline}
</STYLE>
</HEAD>
<BODY style="BACKGROUND: #484848" text=#000000>
<DIV align=center>
<DIV id=maindiv1 align=center><DIV id=maindiv2 style="WIDTH: 636px; POSITION: relative">
<TABLE id=maintable style="POSITION: relative;BORDER-COLLAPSE: collapse" cellSpacing=0 cellPadding=0 align=center border=0>
<TBODY>
<TR>
<TD>
<TABLE style="WIDTH: 636px;BORDER-COLLAPSE: collapse;HEIGHT: 205px" borderColor=#000000 height=205 cellSpacing=0 width=636 align=left border=1>
<TBODY>
<TR>
<TD style="BACKGROUND: #ffffff" vAlign=top align=left>
<P><SPAN style="FONT-SIZE: 8pt"> <FONT face="Verdana, Sans-Serif"><STRONG>Web-tjenesten.dk | IP: <?php
echo $_SERVER['REMOTE_ADDR'];
?> er blevet banned!</STRONG></FONT></SPAN></P>
<BLOCKQUOTE dir=ltr style="MARGIN-RIGHT: 0px">
<P align=left><SPAN style="FONT-SIZE: 9pt"><FONT face="Verdana, Sans-Serif"><FONT color=#ff0000><STRONG>Acces denied:</STRONG></FONT></SPAN><SPAN style="FONT-SIZE: 8pt"><BR><STRONG>Du har ingen adgang.</STRONG> Ip-adresse <?php
echo $_SERVER['REMOTE_ADDR']; //viser brugers IP.
?> er blevet banned for entré. Du er muligvis blevet banned hvis du har været i strid med vores regler.. Er dette opstådet ved en fejl, kontakt venligst omgådene webmasteren...</SPAN></FONT></P>
<P align=left><FONT face="Verdana, Sans-Serif" color=#000000><SPAN style="FONT-SIZE: 8pt"><A href="/scanner.html">Hvis du mener du ikke har været i strid med vores regler så prøv venligst igen.</A></SPAN></FONT></P>
<P align=left><FONT face="Verdana, Sans-Serif"><SPAN style="FONT-SIZE: 8pt"><STRONG>Webmaster email:</STRONG> <A href="mailto:Mattias@fjellvang.dk">Mattias@fjellvang.dk</A></FONT></SPAN></P></BLOCKQUOTE></TD></TR></TBODY></TABLE></TD></TR></TBODY></TABLE>
</DIV></DIV>
</DIV></BODY>
scandone.php
<HTML>
<?php
include("ban.php");
?>
<HEAD><TITLE>Scan færdig... - Webtjenesten.dk</TITLE>
<STYLE>
body, td {font-size: 12pt; font-family: times new roman, times, serif}
h1 {font-weight: normal; font-size: 26pt; font-family: arial, helvetica, sans-serif}
h2 {font-weight: normal; font-size: 18pt; font-family: arial, helvetica, sans-serif}
h3 {font-weight: normal; font-size: 16pt}
h4 {font-weight: normal; font-size: 14pt}
a {text-decoration: none}
a:hover {text-decoration: underline}
</STYLE>
<META HTTP-EQUIV="refresh" CONTENT="5;URL=forside.html">
</HEAD>
<BODY style="BACKGROUND: #484848" text=#000000>
<DIV align=center>
<DIV id=maindiv1 align=center><DIV id=maindiv2 style="WIDTH: 636px; POSITION: relative">
<TABLE id=maintable style="POSITION: relative;BORDER-COLLAPSE: collapse" cellSpacing=0 cellPadding=0 align=center border=0>
<TBODY>
<TR>
<TD>
<TABLE style="WIDTH: 636px;BORDER-COLLAPSE: collapse;HEIGHT: 205px" borderColor=#000000 height=205 cellSpacing=0 width=636 align=left border=1>
<TBODY>
<TR>
<TD style="BACKGROUND: #ffffff" vAlign=top align=left>
<P><SPAN style="FONT-SIZE: 8pt"> <FONT face="Verdana, Sans-Serif"><STRONG>Web-tjenesten.dk | IP-Scanning > Scanner... > Scan done</STRONG></FONT></SPAN></P>
<BLOCKQUOTE dir=ltr style="MARGIN-RIGHT: 0px">
<P align=left><SPAN style="FONT-SIZE: 8pt"><FONT face="Verdana, Sans-Serif"><STRONG>Scanning fuldført!</STRONG></FONT></SPAN></P>
<P align=left><SPAN style="FONT-SIZE: 8pt"><STRONG><FONT face=Verdana>Vi takker for din tålmodighed. Scannings-testen er nu færdig.</FONT></STRONG></SPAN></P>
<P align=left><SPAN style="FONT-SIZE: 8pt"><STRONG><FONT face=Verdana>Følg venligst vores regler eller ip-adresse <u><?php
echo $_SERVER['REMOTE_ADDR'];
?></u>
vil blive banned.</FONT></STRONG></SPAN></P>
<P align=left><SPAN style="FONT-SIZE: 7pt"><FONT face=Verdana></FONT></SPAN> </P>
<P align=left><SPAN style="FONT-SIZE: 7pt"><FONT face=Verdana>Du vidrestilles automatisk om 5 sekunder. Hvis ikke <A href="/forside.html"><FONT color=#0000ff>KLIK HER</FONT></A></SPAN><SPAN style="FONT-SIZE: 8pt"></FONT></SPAN></P></BLOCKQUOTE></TD></TR></TBODY></TABLE></TD></TR></TBODY></TABLE>
</DIV></DIV>
</DIV>
</BODY>
</html>
Indlæg senest redigeret d. 20.08.2007 07:34 af Bruger #11155