mirror of
https://github.com/casjaysdevdocker/squidguard
synced 2025-01-18 12:34:24 -05:00
➖ Deleted: data/htdocs/cgi-bin/e2guardian.pl data/htdocs/www/404.html ➖
data/htdocs/cgi-bin/e2guardian.pl data/htdocs/www/404.html
This commit is contained in:
parent
ed82c87d98
commit
392696bc9d
@ -1,66 +0,0 @@
|
|||||||
#!/usr/bin/perl
|
|
||||||
|
|
||||||
$allow_html_code = 0;
|
|
||||||
&ReadEnvs;
|
|
||||||
|
|
||||||
$deniedurl = $in{'DENIEDURL'};
|
|
||||||
$reason = $in{'REASON'};
|
|
||||||
$user = $in{'USER'};
|
|
||||||
$ip = $in{'IP'};
|
|
||||||
$cats = $in{'CATEGORIES'};
|
|
||||||
|
|
||||||
$host = $in{'HOST'};
|
|
||||||
|
|
||||||
$fbypasshash = $in{'GBYPASS'}; #
|
|
||||||
$ibypasshash = $in{'GIBYPASS'}; #
|
|
||||||
$hashflag = $in{'HASH'}; #
|
|
||||||
|
|
||||||
print "Content-type: text/html\n\n";
|
|
||||||
print '<HTML><link rel="stylesheet" href="/css/proxy.css" />';
|
|
||||||
print '<HEAD><TITLE>Access Denied</TITLE></HEAD>';
|
|
||||||
print '<BODY><CENTER><H2>ACCESS HAS BEEN DENIED</H2>';
|
|
||||||
if (length($user) > 0) {
|
|
||||||
print "<br><em>$user</em>, access to the page:<p>";
|
|
||||||
}
|
|
||||||
else {
|
|
||||||
print '<br>Access to the page:<p>';
|
|
||||||
}
|
|
||||||
print "<strong><a href=\"$deniedurl\">$deniedurl</a></strong>";
|
|
||||||
print '<p>... has been denied for the following reason:<p>';
|
|
||||||
print "<strong>$reason</font></strong>";
|
|
||||||
if (length($cats) > 0) {
|
|
||||||
print '<p>Categories:<p>';
|
|
||||||
print "<strong>$cats</font></strong>";
|
|
||||||
}
|
|
||||||
print '<p>Your username, IP address, date, time and URL have been logged.';
|
|
||||||
print '<p><table border=1><tr><td>You are seeing this error because the page you attempted<br>';
|
|
||||||
print 'to access contains, or is labelled as containing, material that';
|
|
||||||
print '<br>has been deemed inappropriate.</td></tr></table>';
|
|
||||||
print '<p><table border=1><tr><td>';
|
|
||||||
print 'If you have any queries contact your <a href="mailto:admin@proxy.casjay.net?subject=Banned -IP-">Proxy Administrator</td></tr></table>';
|
|
||||||
print '<p><font size=-3>Powered by <a href="http://proxy.casjay.net" target="_blank">Casjays Developments Proxy Server</a></font>';
|
|
||||||
print '</center></BODY></HTML>';
|
|
||||||
|
|
||||||
exit;
|
|
||||||
|
|
||||||
|
|
||||||
sub ReadEnvs {
|
|
||||||
local($cl, @clp, $pair, $name, $value);
|
|
||||||
if ( $ENV{'REQUEST_METHOD'} eq 'POST' ) {
|
|
||||||
read(STDIN, $cl, $ENV{'CONTENT_LENGTH'} );
|
|
||||||
}
|
|
||||||
else {
|
|
||||||
$cl = $ENV{'QUERY_STRING'};
|
|
||||||
}
|
|
||||||
@clp = split(/::/, $cl);
|
|
||||||
foreach $pair (@clp) {
|
|
||||||
($name, $value) = split(/==/, $pair);
|
|
||||||
$value =~ tr/+/ /;
|
|
||||||
$value =~ s/%([a-fA-F0-9][a-fA-F0-9])/pack("C", hex($1))/eg;
|
|
||||||
$value =~ s/<!--(.|\n)*-->//g;
|
|
||||||
if ($allow_html_code != 1) {
|
|
||||||
$value =~ s/<([^>]|\n)*>//g;
|
|
||||||
}
|
|
||||||
$in{$name} = $value;
|
|
||||||
}
|
|
||||||
}
|
|
@ -1,73 +0,0 @@
|
|||||||
<!DOCTYPE html>
|
|
||||||
<html lang="">
|
|
||||||
<head>
|
|
||||||
<meta charset="utf-8" />
|
|
||||||
<meta content="text/html; charset=utf-8" http-equiv="Content-Type" />
|
|
||||||
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
|
|
||||||
<meta name="generator" content="CasjaysDev" />
|
|
||||||
<meta name="robots" content="index, follow" />
|
|
||||||
<meta name="description" content="" />
|
|
||||||
<meta
|
|
||||||
name="viewport"
|
|
||||||
content="width=device-width, initial-scale=1.0, maximum-scale=1.0"
|
|
||||||
/>
|
|
||||||
|
|
||||||
<meta property="og:title" content="" />
|
|
||||||
<meta property="og:type" content="" />
|
|
||||||
<meta property="og:url" content="" />
|
|
||||||
<meta property="og:image" content="" />
|
|
||||||
|
|
||||||
<meta name="theme-color" content="#fafafa" />
|
|
||||||
<link rel="manifest" href="./site.webmanifest" />
|
|
||||||
|
|
||||||
<link rel="icon" sizes="any" href="./images/favicon.ico" />
|
|
||||||
<link rel="icon" type="image/svg+xml" href="./images/icon.svg" />
|
|
||||||
<link rel="apple-touch-icon" href="./images/icon.png" />
|
|
||||||
|
|
||||||
<link rel="stylesheet" href="./css/index.css" />
|
|
||||||
<link rel="stylesheet" href="./css/errorpages.css" />
|
|
||||||
|
|
||||||
<script src="./js/errorpages/isup.js" defer></script>
|
|
||||||
<script src="./js/errorpages/homepage.js" defer></script>
|
|
||||||
<script src="./js/errorpages/loaddomain.js" defer></script>
|
|
||||||
<script src="./js/jquery/default.js"></script>
|
|
||||||
<script src="./js/passprotect.min.js" defer></script>
|
|
||||||
<script src="./js/bootstrap.min.js" defer></script>
|
|
||||||
<script src="./js/app.js" defer></script>
|
|
||||||
|
|
||||||
<title>404 Not Found</title>
|
|
||||||
</head>
|
|
||||||
|
|
||||||
<body onload="javascript:loadDomain();">
|
|
||||||
<!-- Error Page Content -->
|
|
||||||
<div class="container vh-100">
|
|
||||||
<div class="jumbotron">
|
|
||||||
<h1>
|
|
||||||
<i class="fa fa-frown-o red"></i>
|
|
||||||
<a
|
|
||||||
href="https://www.google.com/search?q=server+error+404"
|
|
||||||
target="_blank"
|
|
||||||
>404 Not Found</a
|
|
||||||
>
|
|
||||||
</h1>
|
|
||||||
<p class="lead">
|
|
||||||
We apologize but we can't seem to be able to find what you're looking
|
|
||||||
for!
|
|
||||||
</p>
|
|
||||||
|
|
||||||
<img
|
|
||||||
alt="error"
|
|
||||||
src="./images/404.gif"
|
|
||||||
height="350"
|
|
||||||
width="auto"
|
|
||||||
/><br />
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<a
|
|
||||||
onclick="javascript:homepage();"
|
|
||||||
class="btn btn-secondary btn-outline-danger btn-lg btn-block"
|
|
||||||
><span id="display-domain"></span
|
|
||||||
></a>
|
|
||||||
</div>
|
|
||||||
</body>
|
|
||||||
</html>
|
|
Loading…
x
Reference in New Issue
Block a user