LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 11-16-2011, 02:15 AM   #1
Lexus45
Member
 
Registered: Jan 2010
Distribution: Debian, Centos, Ubuntu, Slackware
Posts: 361
Blog Entries: 3

Rep: Reputation: 48
Squid Error Page


Hello all.
I know how to block src/dst domains/IPs in Squid.

I'd like to "give" users special error-pages (ACCESS_DENIED) according to the sites they visit.

Is it possible?
So, if I block xxx.abc, the user should see "XXX.abc is blocked". If the user will try to visit xyz.com , Squid should give another error page "xyz.com is not allowed to visit", something like this.

For other blocked domains a default error page will go. In fact, I need such a special page only for one web-site (very popular social network. Users spend too much time at work surfing it).

Best regards, Alexey.

Last edited by Lexus45; 11-16-2011 at 02:16 AM.
 
Old 11-16-2011, 02:21 AM   #2
EricTRA
LQ Guru
 
Registered: May 2009
Location: Gibraltar, Gibraltar
Distribution: Fedora 20 with Awesome WM
Posts: 6,805
Blog Entries: 1

Rep: Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297
Hello,

Yes, that's possible. Look at the following, found with Google in under a second.
http://digitizor.com/2009/09/16/how-...ages-in-squid/
http://zlstudios.net/2010/06/change-...y-error-pages/

Furthermore, if I recall correctly you can set specific error pages per site (error_directory) in your squid.conf. Have a look at the configuration parameters.

Kind regards,

Eric
 
1 members found this post helpful.
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
error: You must be logged in to access this page, go to logon page figera Linux - Newbie 2 07-26-2010 08:03 AM
squid access denied page andycol Linux - Server 1 12-07-2009 08:15 AM
[SOLVED] Change Squid Error page EricTRA Linux - Server 1 10-20-2009 01:22 AM
Squid authintication through html page jasem200 Linux - Networking 0 07-15-2007 04:05 PM
Squid default browser page xilace Linux - Networking 1 03-05-2005 01:17 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 08:42 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration