Security code!

How do I make a security code for just one section of a webpage

Page 1 of 1

5 Replies - 713 Views - Last Post: 16 July 2010 - 08:06 PM

#1 whirlwindcomputers  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 2
  • Joined: 16-July 10

Security code!

Posted 16 July 2010 - 12:26 PM

Hello all,

I am building my second website, and I need a little help with something. I have a few buttons that I only want some people to be able to access. My idea is to make a table for these buttons and secure each button with a code. Just some random code; for example, if someone came to the site looking at the page, they would see a button that anyone can push, and another button that says security code: and the user enters the security code and can access that button. I will email the new security codes every month, so that they change fairly frequently, and it won't matter too much if some people figure out how to break the codes because they will change often. I just wish I knew how to integrate something like that into my website pages. It could be in html, or another type of script if I can access it from html. Anyway, I would like to get some ideas, so please if any of you feel like it help me out.

Kindly, -Newer Webmaster

Is This A Good Question/Topic? 0
  • +

Replies To: Security code!

#2 Dormilich  Icon User is offline

  • 痛覚残留
  • member icon

Reputation: 3402
  • View blog
  • Posts: 9,619
  • Joined: 08-June 10

Re: Security code!

Posted 16 July 2010 - 12:29 PM

I think its easier to have different user levels (aka login system) and print only these buttons, that are allowed for that level of user.
Was This Post Helpful? 1
  • +
  • -

#3 TheSoundOfTruth  Icon User is offline

  • D.I.C Head

Reputation: 3
  • View blog
  • Posts: 88
  • Joined: 17-September 09

Re: Security code!

Posted 16 July 2010 - 12:31 PM

Perhaps you could keep your pass codes in a database and use PHP to compare the string they input to the pass code
Was This Post Helpful? 0
  • +
  • -

#4 Dormilich  Icon User is offline

  • 痛覚残留
  • member icon

Reputation: 3402
  • View blog
  • Posts: 9,619
  • Joined: 08-June 10

Re: Security code!

Posted 16 July 2010 - 12:32 PM

View PostTheSoundOfTruth, on 16 July 2010 - 07:31 PM, said:

Perhaps you could keep your pass codes in a database []

that is, the hashes of the passcodes
Was This Post Helpful? 3
  • +
  • -

#5 TheSoundOfTruth  Icon User is offline

  • D.I.C Head

Reputation: 3
  • View blog
  • Posts: 88
  • Joined: 17-September 09

Re: Security code!

Posted 16 July 2010 - 12:43 PM

Touche. It would be safer to use hashes.
Was This Post Helpful? 0
  • +
  • -

#6 whirlwindcomputers  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 2
  • Joined: 16-July 10

Re: Security code!

Posted 16 July 2010 - 08:06 PM

View PostTheSoundOfTruth, on 16 July 2010 - 11:43 AM, said:

Touche. It would be safer to use hashes.


THX!!! This sounds like an easy fix.
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1