LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 12-13-2012, 12:28 AM   #1
sandeepc04
Member
 
Registered: Jun 2012
Location: India
Posts: 66

Rep: Reputation: Disabled
Squid Special Permission Required...


Hi Friends,

I have configured squid on RHEL-5, Its working fine...

I have created files for blocking sites...Its working fine too...

In this file i have blocked some words like facebook, youtube etc... this is also working fine... now what is issue means, whenever employees open any site if facebook youtube word comes in that page means that total webpage is blocking, so i want to give some special permission for some sites...

Like some official sites will come with facebook share or some advertisements then that page will block, so i wanted to give some site full permission which webpage contain blocked words also should open...Like some bank sites also having facebook words, so its getting block, here i wanted to give this site full permission to open..

How to do this ?

But i cant remove words from blocked list...

Regards,
Sandeep CC
 
Old 12-13-2012, 05:27 AM   #2
hamlindsza
Member
 
Registered: Aug 2012
Distribution: Debian, CentOS
Posts: 74

Rep: Reputation: Disabled
Post your squid configuration here please.
 
Old 12-13-2012, 11:03 AM   #3
linuxlover.chaitanya
Senior Member
 
Registered: Apr 2008
Location: Nagpur, India
Distribution: Cent OS 5/6, Ubuntu Server 10.04
Posts: 4,629

Rep: Reputation: Disabled
Squid should not be doing any content filtering. So, it is not supposed to block the site if the content of the webpage contains some words. It is supposed to parse only the web URL.
Also, if you know of the domains and URLs that you need to allow, create an access control list with the names of such domains, and then allow this ACL. This will make sure those domains are allowed no matter what the bottom rules say.

In addition, post your squid configuration file without spaces and comments.
 
Old 10-03-2013, 07:54 AM   #4
sandeepc04
Member
 
Registered: Jun 2012
Location: India
Posts: 66

Original Poster
Rep: Reputation: Disabled
Sorry for late posting...

Here i have got solution as per my requirement...

I have created one text file in /etc/squid/special_websites.txt , Which all website i add in this file that website will open even blocked words come inside this website... I am posting below my squid.conf entry...

acl business_hours time S M T W H F A 00:01-23:59
acl total_block url_regex -i "/etc/squid/total_block.txt"
acl freetime1 time M T W H F A 09:00-18:00
http_access deny total_block freetime1
http_access allow total_block
acl special_website url_regex -i "/etc/squid/special_websites.txt" ##(This entry allow blocked words for websites)
http_access allow special_website
acl blocksite url_regex -i "/etc/squid/blocksite.txt"
acl freetime time M T W H F 09:00-18:00
acl special_users src "/etc/squid/special_user.txt"
http_access allow special_users
http_access deny blocksite freetime
http_access allow blocksite
acl badsite url_regex -i "/etc/squid/badfile.txt"
acl freetime time M T W H F 09:00-18:00
acl special_users src "/etc/squid/special_user.txt"
http_access allow special_users
http_access deny badsite freetime
http_access allow badsite

Note: If i am making any wrong here please let me correct..

Regards,
Sandeep CC
 
  


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
Special Permission for normal users roni_atx Linux - General 3 07-13-2012 03:50 PM
help for special permission bits lqchangba Linux - Security 2 02-20-2007 01:36 PM
Squid: special configuration for remote Squid server hamish Linux - Software 0 12-06-2005 04:58 PM
Access permission bits for special files spinifeX Linux - General 1 01-08-2005 03:05 PM
Is there any special method required to connect to Juno using Slackware 9 +KDE? Nicolae Linux - Software 4 10-21-2003 08:32 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 01:09 AM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration