Forbidden/Unauthorized Access

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
fullfocus
Forum Commoner
Posts: 33
Joined: Fri Jun 30, 2006 2:51 pm

Forbidden/Unauthorized Access

Post by fullfocus »

Hello:

Is it possible to accomplish this feature? If so, how?

I want to create a form where a manager can add/modify employee information. Creating the form and updating the tables in the database is already completed and working perfectly.

What I need to do is protect this form from outsiders who through goofing around can type in the URL for the form directly into the browser. Should such a person attempt to type the URL in their browser, I want a page to appear stating something like Forbidden or Unauthorized Access. I have seen these types of pages.

Is it possible to do this? If so, how would I go about doing it?

Another option could be to put the form in a directory and pretect the entire directory from outsiders. Is this possible? If so, how can I do this?

Thank you.
User avatar
volka
DevNet Evangelist
Posts: 8391
Joined: Tue May 07, 2002 9:48 am
Location: Berlin, ger

Post by volka »

Post Reply