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
7 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
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
2. UNIX for Dummies Questions & Answers
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
3. Cybersecurity
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
4. UNIX for Advanced & Expert Users
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. Web Development
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
6. UNIX and Linux Applications
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
7. Linux
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
LEARN ABOUT DEBIAN
faillog
FAILLOG(8) System Management Commands FAILLOG(8)
NAME
faillog - display faillog records or set login failure limits
SYNOPSIS
faillog [options]
DESCRIPTION
faillog displays the contents of the failure log database (/var/log/faillog). It can also set the failure counters and limits. When faillog
is run without arguments, it only displays the faillog records of the users who had a login failure.
OPTIONS
The options which apply to the faillog command are:
-a, --all
Display (or act on) faillog records for all users having an entry in the faillog database.
The range of users can be restricted with the -u option.
In display mode, this is still restricted to existing users but forces the display of the faillog entries even if they are empty.
With the -l, -m, -r, -t options, the users' records are changed, even if the user does not exist on the system. This is useful to reset
records of users that have been deleted or to set a policy in advance for a range of users.
-h, --help
Display help message and exit.
-l, --lock-secs SEC
Lock account for SEC seconds after failed login.
Write access to /var/log/faillog is required for this option.
-m, --maximum MAX
Set the maximum number of login failures after the account is disabled to MAX.
Selecting a MAX value of 0 has the effect of not placing a limit on the number of failed logins.
The maximum failure count should always be 0 for root to prevent a denial of services attack against the system.
Write access to /var/log/faillog is required for this option.
-r, --reset
Reset the counters of login failures.
Write access to /var/log/faillog is required for this option.
-R, --root CHROOT_DIR
Apply changes in the CHROOT_DIR directory and use the configuration files from the CHROOT_DIR directory.
-t, --time DAYS
Display faillog records more recent than DAYS.
-u, --user LOGIN|RANGE
Display faillog record or maintains failure counters and limits (if used with -l, -m or -r options) only for the specified user(s).
The users can be specified by a login name, a numerical user ID, or a RANGE of users. This RANGE of users can be specified with a min
and max values (UID_MIN-UID_MAX), a max value (-UID_MAX), or a min value (UID_MIN-).
When none of the -l, -m, or -r options are used, faillog displays the faillog record of the specified user(s).
CAVEATS
faillog only prints out users with no successful login since the last failure. To print out a user who has had a successful login since
their last failure, you must explicitly request the user with the -u flag, or print out all users with the -a flag.
FILES
/var/log/faillog
Failure logging file.
SEE ALSO
login(1), faillog(5).
shadow-utils 4.1.5.1 05/25/2012 FAILLOG(8)