LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices

Reply
 
LinkBack Search this Thread
Old 09-02-2002, 02:57 AM   #1
x2000koh
Member
 
Registered: Jul 2002
Location: singapore
Distribution: red had 7.2
Posts: 109

Rep: Reputation: 15
Squid.conf - how to do customized and stardard access deny message


Hi ! Linux expert,
I have configure my squid.conf and my proxy is working properly.

When I "http_access deny" a domain or website, it appear a stardard access deny message from error/ERR_ACCESS_DENIED. If I add deny_info to the acl rules, i would be able to display my customized access deny message.

My question is :
I am working on to prevent user access a list of website / advertisement.

how can I configure so that when user access to some predefine websites, it will appear a stardard access deny message, whereas, some website will appear a customized access deny message.

Your advise is highly appreciated.

X2000koh@yahoo.com.sg
 
Old 09-02-2002, 03:27 AM   #2
MartBrooks
Member
 
Registered: May 2002
Location: London
Distribution: Debian
Posts: 388

Rep: Reputation: 30
The Squid FAQ, section 10, question 24, "I want to customize, or make my own error messages".

http://www.squid-cache.org/Doc/FAQ/FAQ-10.html#ss10.24

Regards
 
Old 09-02-2002, 04:56 AM   #3
shekhar
LQ Newbie
 
Registered: Jan 2002
Posts: 4

Rep: Reputation: 0
deny_info ERR_CUSTOM_ACCESS_DENIED blocked_sites

where ERR_CUSTOM_ACCESS_DENIED is a html file which can be customized as you want

and blocked_sites is a acl which will validate the rule.

So if you want to block some site pls add following line.

1. create a acl like acl blocked_sites url_regex porn baywatch pussy slut cunt boob

where blocked_site is acl name, url_regex is policy and porn baywatch pussy slut cunt boob the word/site which you want to block

2. create a access policy as http_access deny blocked_sites

3. Now if you want to customize the error message for this check deny_info ERR_CUSTOM_ACCESS_DENIED blocked_sites


Next if you want to customized the domain name pls add followin line.

visible_hostname abc.com
 
Old 09-04-2002, 09:53 PM   #4
x2000koh
Member
 
Registered: Jul 2002
Location: singapore
Distribution: red had 7.2
Posts: 109

Original Poster
Rep: Reputation: 15
Thank you

Thank you MartBrooks and Shankar
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Squid Deny Access but... Roach Linux - Software 4 11-23-2004 12:18 PM
SQUID Customized Authentication Programme ritesh_aladdin Linux - Software 0 07-25-2003 08:08 AM
SQUID Customized Authentication Programme ritesh_aladdin Linux - Security 0 07-25-2003 02:30 AM
SQUID Customized Authentication Programme ritesh_aladdin Linux - Networking 0 07-25-2003 02:21 AM
squid comes back with message 'access denied' mhs1973 Linux - Networking 4 02-08-2002 11:17 PM


All times are GMT -5. The time now is 08:50 AM.

Main Menu
 
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
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration