Simple Proxy, allowed pages from textfile

Simple Proxy, allowed pages from textfile

am 03.07.2007 13:01:30 von Ronald

Hello!

In our small company we would like to allow the emplyees to view only
+/- 10 websites like wikepedia, google earth, dictionaries, etc.

I thought it is safe and cheap to do this via a apache webserver. This
is a part of the configuration file:

ProxyRequests On
ProxyVia On


Order deny,allow
deny from all



Order deny,allow
Allow from all


I would like to know if it is possible to make a simple tekstfile. A
bit like the INCLUDE command in PHP so that the main configuration
file is split / build from single textfiles.

Thank you in advance.

R.

Re: Simple Proxy, allowed pages from textfile

am 05.07.2007 06:53:00 von petersprc

You can include files with:

include /my/file.conf

Btw, squid could also be used as a whitelist filter as described here:

http://heifner.blogspot.com/2007/04/simple-whitelist-interne t-filter.html

For more advanced stuff, there's squidGuard and Dan's Guardian.

On Jul 3, 7:01 am, Ronald wrote:
> Hello!
>
> In our small company we would like to allow the emplyees to view only
> +/- 10 websites like wikepedia, google earth, dictionaries, etc.
>
> I thought it is safe and cheap to do this via a apache webserver. This
> is a part of the configuration file:
>
> ProxyRequests On
> ProxyVia On
>
>
> Order deny,allow
> deny from all
>

>
>
> Order deny,allow
> Allow from all
>
>
> I would like to know if it is possible to make a simple tekstfile. A
> bit like the INCLUDE command in PHP so that the main configuration
> file is split / build from single textfiles.
>
> Thank you in advance.
>
> R.

Re: Simple Proxy, allowed pages from textfile

am 07.07.2007 12:22:07 von Sean

Hello,

This is just a suggestion. I think you should try SafeSquid - Content
Filtering Internet Proxy.
What you are trying to can be very easily achieved from the GUI
interface like this:-

1. URL FIlter:
Access the interface with this URL - http://safesquid.cfg
Select Config -> URL Filter
Enabled: Yes Policy: Deny
This will deny access to all URLS, except the ones you specify
under the 'Allow' section.
To define allowed urls, click on 'Add' under the 'Allow' section,
and define urls like this -

Enabled: Yes
Host: (google.com|yahoo.com|linux.com)

2. URL Blacklist:
This feature refers to a plain text file containing a list of
domains and urls that you want to block / allow.
Create a directory 'whitelist' under /opt/safesquid/urlbl .
In this directory create files 'domains' and 'urls' .
These files are plain text files containing the list (one on each
line) of domains and urls that yu want to allow.
Then in the SafeSquid Interface go to Config -> URL Blacklist and
add this rule
Enabled: Yes Policy: Deny
Under Allow sub section click on 'Add' to allow your list like
this: -

Enabled: Yes
Categories: whitelist

This rule will allow access to the list of domains and urls in
the /opt/safesquid/urlbl/whitelist directory.

You can also give a 'profiled' internet access by creating different
profiles for different users / groups.
If you would like to try SafeSquid, register on the forum at
http://www.safesquid.com/forum and use your ID to download the free
edition from http://downloads.safesquid.net/free/safesquid-4.1.1-com20-fr ee.tar.gz

Regards