473,471 Members | 1,995 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

get id/pwd from .htaccess/.pwd control ?

If I don't want to implement a login page, but only .htaccess security
control from Apache server...
is there any way to get the id/pwd data in a php script to redirect the
identified guy into his own area ?

thanks for your tips

Joss

Mar 11 '06 #1
2 2055
NC
Josselin wrote:

If I don't want to implement a login page, but only .htaccess security
control from Apache server...
....Then you need to decide if you want Basic or Digest
authentication...
is there any way to get the id/pwd data in a php script to redirect the
identified guy into his own area ?


Your question is ambiguous. What do you mean when you say "id/pwd
data"? Is it the data that user enters into the authentication dialog
box or data about valid user names and passwords that Apache stores in
a password file?

Read these documents and ask your question again if you still have it
after you're done:

http://httpd.apache.org/docs/1.3/howto/auth.html
http://www.php.net/manual/en/features.http-auth.php

Cheers,
NC

Mar 11 '06 #2
On 2006-03-11 19:20:45 +0100, "NC" <nc@iname.com> said:
Josselin wrote:

If I don't want to implement a login page, but only .htaccess security
control from Apache server...


...Then you need to decide if you want Basic or Digest
authentication...
is there any way to get the id/pwd data in a php script to redirect the
identified guy into his own area ?


Your question is ambiguous. What do you mean when you say "id/pwd
data"? Is it the data that user enters into the authentication dialog
box or data about valid user names and passwords that Apache stores in
a password file?

Read these documents and ask your question again if you still have it
after you're done:

http://httpd.apache.org/docs/1.3/howto/auth.html
http://www.php.net/manual/en/features.http-auth.php

Cheers, NC


Thanks, got it... it was the data the user enters ( auser/apwd) and
once validated
redirect is done to a dedicated page -> xxx_auser.html
it works... I also read infos about http-auth security limitations but
it's rather good for the kind of protection I need (not so high...)

Joss

Mar 13 '06 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: yawnmoth | last post by:
i'm trying to write a php script that will password protect some random directory by creating a .htaccess file, and a password file to accompany the .htaccess file, and it isn't working... ...
2
by: Carlos Marangon | last post by:
hello! I log in a directory protected by .htaccess and after I log in, I close all windows. So I retype the address for the directory in the browser address bar and it allows me to reenter the...
4
by: Ivo | last post by:
Greetings newsgroup, I am moving some php scripts to a new host. While getting to know the server, I ran into a strange problem. If I add a .htaccess file, or more specifically: a .htaccess with...
7
by: John | last post by:
Hello. I want to get this blasted .htaccess file sorted out, so I can have sessions without register_globals being on. I have looked everywhere for info on this and I mean everywhere...
0
by: Jack Hambabo | last post by:
Hi, I'm searching for a php script that can find out whether the current user (I know _SERVER will give me the name for non-cgi php) has the right to view a specific file. My dream is that I...
1
by: \(Joseph | last post by:
Is there a way to use php as an alternative to htaccess to control access to my wordpress blog. There are several text files (eg one.txt, 1.txt, first.txt) on my websites that have approved ip...
13
by: Lars Willich | last post by:
As far as I know I can override the php settings for a certain branch of the whole directory tree by putting a additional, new php.ini in this directory. Is this true ? If I assign in this new...
0
by: veliscorin | last post by:
hi guys, i currently have a .htaccess that rewrites a certain url for example: http://localhost:8080/test/my_function to http://localhost:8080/test/index.php/my_function i have successfully...
4
by: adnanjunk | last post by:
Hi, Having a little issue with .htaccess not working on windows server. I have clean url's setup using the htaccess file, working fine on linux server. I have researched for a while and found...
1
by: dominoeffect | last post by:
Hi all, I (hastily) updated my .htaccess to include this 3G blacklist which blocks scrapers, hackers and the like. perishablepress.com/press/2008/05/13/perishable-press-3g-blacklist/ ...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
1
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
1
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
0
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.