Hello Community,
here comes a small hint to use the public service tools.pediapress.com in
conjunction with img_auth.php.
Install-Dir-->img_auth.php:
/**
* Issue a standard HTTP 403 Forbidden header and a basic
* error message, then end the script
*/
function wfForbidden() {
$ip = getenv('REMOTE_ADDR');
if($ip=="178.63.56.242"):
return;
endif;
header( 'HTTP/1.0 403 Forbidden' );
header( 'Vary: Cookie' );
header( 'Content-Type: text/html; charset=utf-8' );
echo <<<ENDS
<html>
<body>
<h1>Access Denied</h1>
<p>You need to log in to access files on this server.</p>
</body>
</html>
ENDS;
wfLogProfilingData();
exit();
}
cheers, Stevie
www.webserver-management.de
--
You received this message because you are subscribed to the Google Groups
"mwlib" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/mwlib?hl=en.