Results 1 to 8 of 8

Thread: Squid Proxy block websites, facebook and gmail for the specific ip address

  1. #1
    Junior Member
    Join Date
    Dec 2011
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Rep Power
    0

    Default Squid Proxy block websites, facebook and gmail for the specific ip address

    Hi,

    We are using squid proxy in our organization, all the users are access the internet through proxy server.
    I want to configure the squid proxy server to block the websites, facebook and gmail for the specific ip address.
    I think it will done through acl, i'm new to squid, pls explain in detail to do this.

    Thanks,
    Suriya

  2. #2
    Junior Member
    Join Date
    Dec 2011
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Rep Power
    0

    Default

    It would look something like this

    acl block_websites dstdomain .facebook.com .gmail.com
    http_access deny block_websites

    You can stick that ACL at line 630 of your squid.conf

  3. #3
    Junior Member
    Join Date
    Dec 2011
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Rep Power
    0

    Default

    Hi,

    Thanks for the reply, I dont want to block the sites for all users, I want to block it for specifi ip address.

    Thanks,
    Suriya

  4. #4
    Junior Member
    Join Date
    Feb 2012
    Posts
    9
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Rep Power
    0

    Default

    Quote Originally Posted by praka.06 View Post
    Hi,

    Thanks for the reply, I dont want to block the sites for all users, I want to block it for specifi ip address.

    Thanks,
    Suriya

    Hi Suriya,

    Try below lines.

    acl block_client src 10.1.2.3

    acl blockdomain dstdomain .fun.com .funny.com

    http_access deny block_client blockdomain

    Regards,
    Balaji.V

  5. #5
    Junior Member
    Join Date
    Oct 2011
    Posts
    19
    Thanks
    6
    Thanked 0 Times in 0 Posts
    Rep Power
    0

    Default

    Hi use this

    enter these lines before all the acl lists

    acl addr src 192.168.1.5/32
    acl sites dstdom_regex -i "/etc/squid/deny.acl"
    http_access deny addr sites
    http_access allow sites
    save and close the file

    add the address to block in the file deny.acl
    #cat >> /etc/squid/deny.acl
    (^|\.)facebook\.com$
    (^|\.)gmail\.com$

    restart the squid services...

  6. #6
    Junior Member
    Join Date
    Jul 2012
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Rep Power
    0

    Post Block urls, keyword or file format on Squid proxy !

    Hi,

    If you want to block any url or any specific keyword you can add following lines in your squid.conf

    acl bad_url url_regex "/etc/squid3/blockedsites.acl

    http_access deny bad_url

    **********
    Contain of blockedsites.acl

    filesonic
    rapidshare
    megaupload
    mediafire
    2shared
    fileserve
    wupload
    sex
    porn
    mp3
    crictime

    and so on, you can added complete URL in blockedsites.acl file

  7. #7
    Junior Member
    Join Date
    Oct 2012
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Rep Power
    0

    Default

    hello guys ..i found this fourm best regarding the proxy servers.... i wanna to learn about the proxy servers..thanks for co-operating me.....

  8. #8

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. [Solved] Bypass Squid Proxy Server For One IP Address Only For One Website / Domain
    By ratnakarreddy in forum Proxy Servers
    Replies: 4
    Last Post: 13th January 2012, 01:35 PM
  2. Replies: 3
    Last Post: 5th February 2011, 10:20 AM
  3. Hotmail/gmail login problem - Squid Transparent Proxy
    By Cyborg_sa in forum CentOS / RHEL / Fedora
    Replies: 5
    Last Post: 12th November 2010, 09:17 AM
  4. Replies: 0
    Last Post: 17th May 2010, 10:28 PM
  5. Linux Block access of certain websites
    By Ana45 in forum CentOS / RHEL / Fedora
    Replies: 2
    Last Post: 29th January 2010, 11:19 PM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41