Authorization Check

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
pidrare
Forum Newbie
Posts: 1
Joined: Sun Mar 13, 2011 6:03 pm

Authorization Check

Post by pidrare »

Hi,

I have no knowledge about coding.
But I have very little knowledge in creating or editing simple web pages.
How do you create a web page that checks user account name and password of a website in batch mode to see if they are valid.
For example:
I can put account details in an empty form in a "username:password" format and submit to check if they are valid.
The "username:password" will be checked one by one in a fashion of "http://username:password@www.(name of site).com".
It basically connects to the site's URL with a "username:password@" attached to it and see if it redirects to either "Members Area" or "Access Denied".
Example:
I put TestUser:TestPass in the form and submit.
Now it will connect to "http://TestUser:TestPass@www.(name of site).com"

When the checking is done a result page will come showing the valid ones.

How can all this be done?

Thanks
User avatar
social_experiment
DevNet Master
Posts: 2793
Joined: Sun Feb 15, 2009 11:08 am
Location: .za

Re: Authorization Check

Post by social_experiment »

Passing information in that manner doesn't seem secure. Normally you can create a form, which then submits the values to a 'check' page if you will where the information is checked against an existing database of users. To keep the user logged in across multiple pages use sessions.
“Don’t worry if it doesn’t work right. If everything did, you’d be out of a job.” - Mosher’s Law of Software Engineering
Post Reply