Linux - Server This forum is for the discussion of Linux Software used in a server related context. |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
01-05-2011, 09:37 AM
|
#1
|
Member
Registered: Jan 2007
Location: INDIA
Distribution: Ubuntu, Debian
Posts: 343
Rep:
|
Viewing web pages of a user - squid
Suppose when I install squid proxy server
Can I view the web pages visited by a particular user/machine in a particular session?
I think we can analise the information by the log files of squid. But can I view the page(static)?
|
|
|
01-20-2011, 09:10 AM
|
#2
|
LQ Newbie
Registered: Aug 2010
Location: Germany
Distribution: Slackware
Posts: 16
Rep:
|
i don't think you can know which web pages a user accessed without analyzing the logfiles.
if squid will display a page to you that was cached for another user? i think you can configure that.
|
|
|
01-20-2011, 11:59 AM
|
#3
|
Member
Registered: Jan 2007
Location: INDIA
Distribution: Ubuntu, Debian
Posts: 343
Original Poster
Rep:
|
Is it possible with help of log file
For example from a log entry, A particular user has visited a site at a time. But it is a text entry. Can I retrieve the page(cached)?
|
|
|
01-20-2011, 12:22 PM
|
#4
|
LQ Guru
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 27,659
|
Quote:
Originally Posted by sunils1973
Is it possible with help of log file
For example from a log entry, A particular user has visited a site at a time. But it is a text entry. Can I retrieve the page(cached)?
|
Sure...go ahead and write a program to parse the log file, and download/save all the web pages for you.
|
|
|
01-21-2011, 08:15 AM
|
#5
|
Member
Registered: Jan 2007
Location: INDIA
Distribution: Ubuntu, Debian
Posts: 343
Original Poster
Rep:
|
OK Thank u
but up to what time the cached pages will be there? I think after sometime ( may be hours or days) The cached pages will be replaced with new contents. For getting the page corresponding to the particular session, the cache status should be saved. For this case In addition to the log files, which files/directories should I copy.
With this logfiles and cache files/directories, can I script from another machine?
|
|
|
01-21-2011, 09:40 AM
|
#6
|
LQ Guru
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 27,659
|
Quote:
Originally Posted by sunils1973
OK Thank u
but up to what time the cached pages will be there? I think after sometime ( may be hours or days) The cached pages will be replaced with new contents. For getting the page corresponding to the particular session, the cache status should be saved. For this case In addition to the log files, which files/directories should I copy.
With this logfiles and cache files/directories, can I script from another machine?
|
Spell out your words.
And since this will be a program that YOU write, you can make it do whatever you'd like. It's not going to pull the web pages from the Squid cache, since that's not what you asked. You asked if you could read the log file, and cache the web pages based on the links...the answer to that is yes.
|
|
|
01-21-2011, 11:40 AM
|
#7
|
Member
Registered: Jan 2007
Location: INDIA
Distribution: Ubuntu, Debian
Posts: 343
Original Poster
Rep:
|
Sorry! my aim is to pull the web pages from squid cache
|
|
|
All times are GMT -5. The time now is 09:24 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|