Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

HTML Security with Oin number

Status
Not open for further replies.

sirnose1

Programmer
Nov 1, 2005
133
US
I have a we page (HTML and CSS). There are only 4 users allowed to access this webpage with a pin number. Is it possible to hard-code the pin number so when the user goes to the link, If he has a pin it will goe the page, if not they get a message that they have no access? Should a cookie be used for this? Thanks in advance.
 
Hi

HTML, XHTML & CSS can not provide security, so your question is off-topic in this forum.

The simplest way is to use HTTP authentication, which is provided by most of the modern web servers. Look in the Web Servers Category of this site to see if we have a forum dedicated to your web server.

Regarding the use of the cookie, that is useful only to store the authenticated status, but not to authenticate.


Feherke.
 
If you hard code the number, then anybody can access the page.
|Because the number is there to be used.

You can add a cookie yez to store in the relevant user's machines.

Since HTML can;t set cookie's by itself, you'll need to choose a server-side language that your web server support to code the cookie logic onto the page.

Here are some pages:

forum434
forum333
forum232

----------------------------------
Phil AKA Vacunita
----------------------------------
Ignorance is not necessarily Bliss, case in point:
Unknown has caused an Unknown Error on Unknown and must be shutdown to prevent damage to Unknown.

Behind the Web, Tips and Tricks for Web Development.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top