[SOLVED] authenticate URL without being asked from user.

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
renu
Forum Commoner
Posts: 30
Joined: Sat Nov 06, 2004 12:20 am

authenticate URL without being asked from user.

Post by renu »

hello

i want to authenticate header(URL).now when url to be authenticated is entered in addressbar and clicked then a pop up menu appears asking for username and password.
But wht i want is that username and password is being filled from databse whithout user interaction.

in brief i want aunthetication to be done without user's interaction.username and password for a particular url are stored in database.
I think i'm clear now.

Thanks

renu
d3ad1ysp0rk
Forum Donator
Posts: 1661
Joined: Mon Oct 20, 2003 8:31 pm
Location: Maine, USA

Post by d3ad1ysp0rk »

Sorry, you probably are being clear, but I'm just not getting it.

Are you saying you want to auto login someone?
Do you want to keep someone logged in no matter what page they're visiting?
Do you want to disable logins all together?
renu
Forum Commoner
Posts: 30
Joined: Sat Nov 06, 2004 12:20 am

Post by renu »

hey not disable logins.but that process will be in background.
i mean when user enter the url then it should be check tht whether password exists for tht url in database
and if that exists then that url is authenticated.

now wht happening is tht when user enter url then popup menu asking for password appears and then user enters password here.but i dont want to display tht popup menu.

am i clear now?
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

I think renu's talking about http auth popups... and logging in through the url of this example: http://username:password@hostname/path?arg=value#anchor
I call pretty insecure.
renu
Forum Commoner
Posts: 30
Joined: Sat Nov 06, 2004 12:20 am

Post by renu »

ya feyd u got me right.Do u have solution for tht
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

the url I posted is how you login to an http auth system without seeing the username/password popup (unless they are bad)
renu
Forum Commoner
Posts: 30
Joined: Sat Nov 06, 2004 12:20 am

Post by renu »

i tried this but this didnt work,it then shows page cant be displayed
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

post an example of what you tried.
renu
Forum Commoner
Posts: 30
Joined: Sat Nov 06, 2004 12:20 am

solved

Post by renu »

hi
i have solved my problem by using function curl.i have passed username/password thru curl function..
Post Reply