Hi regatta,
I tried adding
order deny, allow
allow from my-ip
deny from all
to the .htaccess and I got an internal server error and the following error in the error log:
links/admin/.htaccess: order takes one argument, 'allow,deny', 'deny,allow', or 'mutual-failure'
I'm definitely a novice so I'm sure I did something wrong. This is what's in the .htaccess to begin with:
AuthUserFile /dir/domain.com/cgi-bin/links/admin/.htpasswd
AuthGroupFile /dev/null
AuthType Basic
AuthName Protected
require valid-user
I'm assuming it will not allow the deny/allow after that. I would do it the other way with the httpd.conf file but there are a few conf files I'm finding and I'd rather wait until we get someone with more experience to edit one of these.
Any help would be most appreciated.
Nadine
Edited to add:
Nevermind the above - this worked thanks to Dan.
Order Deny,Allow
Deny from all
Allow from XX.XX.XX.XX
Thanks again everyone!
Nadine
I tried adding
order deny, allow
allow from my-ip
deny from all
to the .htaccess and I got an internal server error and the following error in the error log:
links/admin/.htaccess: order takes one argument, 'allow,deny', 'deny,allow', or 'mutual-failure'
I'm definitely a novice so I'm sure I did something wrong. This is what's in the .htaccess to begin with:
AuthUserFile /dir/domain.com/cgi-bin/links/admin/.htpasswd
AuthGroupFile /dev/null
AuthType Basic
AuthName Protected
require valid-user
I'm assuming it will not allow the deny/allow after that. I would do it the other way with the httpd.conf file but there are a few conf files I'm finding and I'd rather wait until we get someone with more experience to edit one of these.
Any help would be most appreciated.
Nadine
Edited to add:
Nevermind the above - this worked thanks to Dan.
Order Deny,Allow
Deny from all
Allow from XX.XX.XX.XX
Thanks again everyone!
Nadine