Logging htaccess


 
Thread Tools Search this Thread
Special Forums Cybersecurity Logging htaccess
# 1  
Old 02-09-2005
Logging htaccess

hi i am trying to make a log of all users who access my website, i am using htaccess to administrate logins, how does htaccess store a session i.e where is the valid user login temporarily stored while a user is using the site or is there already some sort of logging being done by htaccess.

ideally i would like to store the username, time of login and what was accessed. in the log file
# 2  
Old 02-09-2005
I just checked the only .htaccess I have with Apache and it already logs to the default access_log when accessing the directory/file that I have set up - puts in the information that you were looking for. You might have to just search through that log for the specific directory to show what was accessed.
# 3  
Old 09-23-2005
Quote:
Originally Posted by omnibarb
ideally i would like to store the username, time of login and what was accessed. in the log file
This is already happening in your access_log! Look here:
Code:
12.23.45.43 - roy [21/Sep/2005:15:19:00 +0200] "GET ch13_01.htm HTTP/1.1" 200 11932 "http://foo.bar/index.htm" "Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.1.4322)"

This shows user roy accessing a certain file and you can see his originating IP-address. Pretty much all you wanted, right?

Last edited by indo1144; 09-23-2005 at 08:51 AM.. Reason: Clicked submit instead of preview...
Login or Register to Ask a Question

Previous Thread | Next Thread

7 More Discussions You Might Find Interesting

1. Linux

Syslog not logging successful logging while unlocking server's console

When unlocking a Linux server's console there's no event indicating successful logging Is there a way I can fix this ? I have the following in my rsyslog.conf auth.info /var/log/secure authpriv.info /var/log/secure (1 Reply)
Discussion started by: walterthered
1 Replies

2. UNIX and Linux Applications

Authentication via .htaccess and .htpasswd

I've created .htaccess and use htpasswd comand to create .htpasswd Now when I try to access my protected area I still have loging panel. I checked apache error log lile and found that there is some problem with mismatch password. I use Apache 2.2 .22 Is there some erron in creating... (25 Replies)
Discussion started by: Budrys
25 Replies

3. Web Development

.htaccess redirect with #

I have the following directive in my .htaccess: #RewriteRule ^mozrank/?$ "http://www.seobook.com/#a_aid=dh" The problem is that the redirect is going to http://www.seobook.com/%23a_aid=dh How to preserve the # when redirecting? (2 Replies)
Discussion started by: rlopes
2 Replies

4. UNIX for Advanced & Expert Users

Redirect with htaccess

Hi, I would like to use htaccess 301 redirect with URL hiding. Ex: when browse the website 'abc.com' it should show the contents of the page 'xyz.com/start/index.html' but in addressbar should show the domain 'abc.com'. I know it works with html URL frame rewrite. But my question is it... (0 Replies)
Discussion started by: chandranjoy
0 Replies

5. Cybersecurity

htaccess

Something is wrong. I do everything right make the .htaccess file and stuff, but when I try the htpasswd command it says command not found. I use Putty SSH client and I think server is running RedHat 7.1 with Apache some version. HELP!!! (1 Reply)
Discussion started by: _hp_
1 Replies

6. UNIX for Dummies Questions & Answers

.htaccess

i want to protect a folder on my HP.... does the folder need more than ".htaccess" and ".htpasswd" to be protected , and ask for login and password??? Please help ...... i use HTAdmin 1.2.1 to manage my access files.. The systemadmin cant or wount answer.....:confused: Avenger (3 Replies)
Discussion started by: Avenger
3 Replies

7. UNIX for Dummies Questions & Answers

.htaccess?

For a schoolproject, I have to set up an intranet at a company headquarters in the Netherlands. But they want to give the division in the United States access to that intranet. I have to find out how to do that. I've heard that you can do that by giving certain people access to the intranet with... (1 Reply)
Discussion started by: Puc conDoin
1 Replies
Login or Register to Ask a Question