Proxy filter/squidguard
-
Good day Everyone this is a little project i have been working on.
i wanted to post my own access denied page insted of the default squid message.
what i have done is to pull the sgerror.php using winscp path /usr/local/www/ and add a few line of code se code below in bold the other is for debugging purpose.
so what i have done is to create a index.html and place it in the www folder and use the code to display the custom page as an access denied error page.
i have attached the screenshot
hope you enjoy.if($html){
header("location:http://{$_SERVER['HTTP_HOST']}/index.html"); die(); //Redirect the user to the index.html file
//$html = file_get_contents("/usr/local/www/index.html");
//print_r($_SERVER); die();
//die( $html );
}
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register LoginPrivacy Policy · Cookie Policy