Proxying restricted by URL *and* username?

This is a discussion on Proxying restricted by URL *and* username? within the Apache Web Server forums, part of the Web Server and Related Forums category; Can I do this with Apache's proxy/access/rewrite features? I want to set up a proxy server which ...


Go Back   Usenet Forums > Web Server and Related Forums > Apache Web Server

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 03-18-2006
Andrew Instone-Cowie
 
Posts: n/a
Default Proxying restricted by URL *and* username?

Can I do this with Apache's proxy/access/rewrite features?

I want to set up a proxy server which users must enter a username and
password to be able to proxy to the outside world: So far that looks
pretty straight forward with mod_access and "Require user".

I want to be able to restrict proxying to allow access to a specified
list of websites: I've found a method for doing that using a text list
of websites and mod_rewrite which looks like it should work.

The problem: I want some authenticated usernames (the adults) to be able
to access any Internet site via the proxy, but I want other usernames
(the kids) only to be able to access sites on the specified list. Can I
do that? How?

I don't want to set up two different proxies, e.g. in different virtual
hosts.

(Apache 2.0, if that makes a difference.)

Thanks
Andrew
  #2 (permalink)  
Old 03-18-2006
Robert Ionescu
 
Posts: n/a
Default Re: Proxying restricted by URL *and* username?

Andrew Instone-Cowie wrote:
> but I want other usernames
> (the kids) only to be able to access sites on the specified list.


May be prefix all user names for the kids with a 'k_' or something
similar. Or perform a RewriteMap lookup for the user name to determine
if it's an adult or a kid. Of course, you must keep a separate database
(e.g. txt-file) for that.

Just an idea...

--
Robert
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 05:32 PM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0