Currently, I am developing a website that requires customers to input a specific "code" in order to gain access. Upon visiting the site, users will be prompted to enter a simple code to proceed further. My programming skills are limited to HTML, CSS, and JSP, so I'm looking for a basic security measure to implement on the site.
The target audience for this site is the average user, although I understand that more tech-savvy individuals may try to access it as well. Despite this, there is no sensitive information at risk if they do manage to get in.
At the moment, I am using a subpar CMS (TeamSite) to build the site using HTML and CSS. What would be the easiest form of 'security' that I could use to grant customer access? I was thinking of creating a simple function in JSP like:
`if input = 'this' then redirect customer to content`
However, I recognize that this method is not secure enough. This site is currently only for a small group of people as part of a pilot project. If it grows larger, we will consider stronger security measures. For now, I need an interim solution to keep the site protected.
Although it may seem foolish, I could embed the JavaScript in the <head>
section to hide the code from everyday users. Even though technically adept users can view the source code and find the information, I am primarily focusing on average users who won't have that knowledge.
Your insights and suggestions are greatly appreciated. Thank you in advance.