Find the answer to your Linux question:
Results 1 to 6 of 6
Does anyone how to add and remove / allow certain websites in squid im totally stumped...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Mar 2005
    Location
    Calumet, MI
    Posts
    14

    adding / removing in squid


    Does anyone how to add and remove / allow certain websites in squid im totally stumped

  2. #2
    Linux User
    Join Date
    Feb 2005
    Posts
    290
    # stupid lzio.com worm...
    acl lzio url_regex lzio.com
    http_access deny lzio

    # created on xx/x/xxxx for all gov.my
    acl gov url_regex gov.my
    http_access allow gov

  3. #3
    Just Joined!
    Join Date
    Mar 2005
    Location
    Calumet, MI
    Posts
    14
    so where do i add that? and i though there was a way to add it by the command line

  4. $spacer_open
    $spacer_close
  5. #4
    Linux User
    Join Date
    Feb 2005
    Posts
    290
    add those into your squid.conf. the squid.conf that comes default should havve plenty of examples in it, for redhat, it's normally located in /etc/squid/

  6. #5
    Just Joined!
    Join Date
    Mar 2005
    Location
    Calumet, MI
    Posts
    14
    lets say i wanted to allow a domain...

    lets say the domain pcmx-mi.com

    what would i do?

    lets also say i want to remove access to google.com
    what would i do?

    cane you make me what it should be? in a config file or w/e?

  7. #6
    Linux User
    Join Date
    Feb 2005
    Posts
    290
    url_regex works in the way that it search for a particular string in your URL. say if i insert:

    Code:
    # ban anything to do with google... 
    acl goog url_regex google 
    http_access deny goog
    then url like www.google-alternative.com www.google-imakeupthisurl.com www.google-2.com or even google.somethingelse.com will be banned as well

    check the squid documentation for more info, or lets start googling

Posting Permissions

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