It's not a secret anymore!*
The moose likes I/O and Streams and the fly likes Java extenal acl squid Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » I/O and Streams
Bookmark "Java extenal acl squid" Watch "Java extenal acl squid" New topic
Author

Java extenal acl squid

Edward Ryan
Greenhorn

Joined: Apr 13, 2011
Posts: 1
Hey guys,

For a learning experience (I'm learning java at uni and we have a squid proxy at work) I am creating a external acl in java for squid. It will check to see if a user has a list of websites that they are allowed to access that other users are not. For example a manager may want to be able to access websites that are usually blocked. I have everything in place accept for actually capturing the information that squid sends to the program. which is the username and the domain they are trying to access.

This is on CentOS.

Would I use System.in to do this?

Thanks, Edward.
Greg Charles
Sheriff

Joined: Oct 01, 2001
Posts: 2833
    
  11

Hi Edward and welcome to Java Ranch!

I haven't worked with squid, but I think it's pretty unlikely that you would get its data by reading System.in, which is generally used for capturing what a user types at a keyboard. Now if squid is producing its output to standard out ... it would normally show up as text in a console window ... then you could pipe that output into your Java program, and then it would be available from System.in. I just have my doubts that's how squid works. It's more likely that you connect to it via a network socket or something like that. Maybe there's even a Java API. You should check the squid user manual and see if it accepts client requests.
 
Consider Paul's rocket mass heater.
 
subject: Java extenal acl squid
 
Similar Threads
WA #1.....word association
http file caching on linux
Java tutorials
Accessing Windows ACLs from Java
linux gateway setup