Guest User!

You are not Sophos Staff.

This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

HTTP blacklist

Can i get some doc how i can add sites to that blacklist ???

Thanks 
btw great tool


This thread was automatically locked due to age.
Parents
  • Can anybody tell me what the blacklist is what it does and how to use it
  • Hi,

    I found the easiest way (some may differ) to get a blacklist in place is as follows.

    Create a file - say /var/chroot-squid/etc/blacklist file that contains your list of websites.

    Edit /var/chroot-squid/etc/squid.conf-default

    Add the line (in the correct position)
    acl BLOCKED url_regex "/var/chroot-squid/etc/blasklist"

    then, under your http_access, something like:

    http_access allow  !BLOCKED

    this should provide some rudimentry access controls.....

    Hope this helps..

    Karl
Reply
  • Hi,

    I found the easiest way (some may differ) to get a blacklist in place is as follows.

    Create a file - say /var/chroot-squid/etc/blacklist file that contains your list of websites.

    Edit /var/chroot-squid/etc/squid.conf-default

    Add the line (in the correct position)
    acl BLOCKED url_regex "/var/chroot-squid/etc/blasklist"

    then, under your http_access, something like:

    http_access allow  !BLOCKED

    this should provide some rudimentry access controls.....

    Hope this helps..

    Karl
Children
  • as astaro is working with squid, the best way to go is searching in google for "squid FAQ"
    If you are not feeling like searching just read the following:
    ------------------------------------------------
    go to /var/chroot-squid/etc/ and edit the file squid.conf-default, then edit the file at ACCESS CONTROLS and write something like:
    acl myrule url_regex name1 name2 name3 ...nameN where name1 to nameN are words that you want to block.
    Then at the http_access before http_access allow all, insert http_access deny myrule then start and stop squid
    /sbin/init.d/squid stop
    /sbin/init.d/squid start
    ------------------------------------------------
    That should be all, have fun!  [:)] 
    P.S: Even more interesting than that url blocking is this file flocking...
    acl download_files urlpath_regex \.hqx$ \.bin$ \.mpeg$ \.avi$ \.rar$ \.ace$ \.mpe$ \.mov$
    http_access deny download_files, try it!