LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Squid Special Permission Required... (https://www.linuxquestions.org/questions/linux-newbie-8/squid-special-permission-required-4175441241/)

sandeepc04 12-12-2012 11:28 PM

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

hamlindsza 12-13-2012 04:27 AM

Post your squid configuration here please.

linuxlover.chaitanya 12-13-2012 10:03 AM

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.

sandeepc04 10-03-2013 06:54 AM

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


All times are GMT -5. The time now is 01:47 PM.