Jump to content

so I am making a website for my local air cadet squadron : cadets710.16mb.com
and id like to create a separate serie of pages on the website that requires a passcode to acess (for staff and officers...) anyone knows how to do that ? (just a simple page that you enter code to gain acess. no username login or anything)

~New~  BoomBerryPi project !  ~New~


new build log : http://linustechtips.com/main/topic/533392-build-log-the-scrap-simulator-x/?p=7078757 (5 screen flight sim for 620$ CAD)LTT Web Challenge is back ! go here  :  http://linustechtips.com/main/topic/448184-ltt-web-challenge-3-v21/#entry601004

Link to comment
https://linustechtips.com/topic/233656-web-page-acess-code/
Share on other sites

Link to post
Share on other sites

so I am making a website for my local air cadet squadron : cadets710.16mb.com

and id like to create a separate serie of pages on the website that requires a passcode to acess (for staff and officers...) anyone knows how to do that ? (just a simple page that you enter code to gain acess. no username login or anything)

If you use something like Wordpress or other CMS, they have built in functionality to lock pages.

 

Otherwise: http://www.javascriptkit.com/script/cut10.shtml

D3SL91 | Ethan | Gaming+Work System | NAS System | Photo: Nikon D750 + D5200

Link to comment
https://linustechtips.com/topic/233656-web-page-acess-code/#findComment-3192807
Share on other sites

Link to post
Share on other sites

i have to say i live your photo lol 

yes you shure live it :P

~New~  BoomBerryPi project !  ~New~


new build log : http://linustechtips.com/main/topic/533392-build-log-the-scrap-simulator-x/?p=7078757 (5 screen flight sim for 620$ CAD)LTT Web Challenge is back ! go here  :  http://linustechtips.com/main/topic/448184-ltt-web-challenge-3-v21/#entry601004

Link to comment
https://linustechtips.com/topic/233656-web-page-acess-code/#findComment-3192847
Share on other sites

Link to post
Share on other sites

If you use something like Wordpress or other CMS, they have built in functionality to lock pages.

 

Otherwise: http://www.javascriptkit.com/script/cut10.shtml

thanks

~New~  BoomBerryPi project !  ~New~


new build log : http://linustechtips.com/main/topic/533392-build-log-the-scrap-simulator-x/?p=7078757 (5 screen flight sim for 620$ CAD)LTT Web Challenge is back ! go here  :  http://linustechtips.com/main/topic/448184-ltt-web-challenge-3-v21/#entry601004

Link to comment
https://linustechtips.com/topic/233656-web-page-acess-code/#findComment-3192848
Share on other sites

Link to post
Share on other sites

If you use something like Wordpress or other CMS, they have built in functionality to lock pages.

 

Otherwise: http://www.javascriptkit.com/script/cut10.shtml

It looks like this requires you to put the password in the source code. Also it seems that this doesn't prevent someone simply navingating to the page in question.

OP, I don't know how to do this securely, but I have been advised not to use JavaScript by a friend who works with online security. Sorry I can't help more, I just wouldn't suggest you use this method.

"PSU brands are meaningless, look up the OEM."

Link to comment
https://linustechtips.com/topic/233656-web-page-acess-code/#findComment-3192865
Share on other sites

Link to post
Share on other sites

It looks like this requires you to put the password in the source code. Also it seems that this doesn't prevent someone simply navingating to the page in question.

OP, I don't know how to do this securely, but I have been advised not to use JavaScript by a friend who works with online security. Sorry I can't help more, I just wouldn't suggest you use this method.

Aside from a database and Username and password, you are correct, this is probably a very insecure way of doing this.

 

This however is probably one of the simplest. And will keep out most users. 

 

You may look to see if your host has built in password protecting tools. This may be under their online file manager, or may be an installer. These would make use of more complicated code that would be more secure (without making it terribly difficult for you).

D3SL91 | Ethan | Gaming+Work System | NAS System | Photo: Nikon D750 + D5200

Link to comment
https://linustechtips.com/topic/233656-web-page-acess-code/#findComment-3192886
Share on other sites

Link to post
Share on other sites

Aside from a database and Username and password, you are correct, this is probably a very insecure way of doing this.

 

This however is probably one of the simplest. And will keep out most users. 

 

You may look to see if your host has built in password protecting tools. This may be under their online file manager, or may be an installer. These would make use of more complicated code that would be more secure (without making it terribly difficult for you).

 

 

It looks like this requires you to put the password in the source code. Also it seems that this doesn't prevent someone simply navingating to the page in question.

OP, I don't know how to do this securely, but I have been advised not to use JavaScript by a friend who works with online security. Sorry I can't help more, I just wouldn't suggest you use this method.

 

 

well actually this is only to prevent kids from fooling around on a separate text modifiable zone where we put important messages and info about certain cadets. im pretty sure none of them even knows what a source code is :P thanks for the help !

~New~  BoomBerryPi project !  ~New~


new build log : http://linustechtips.com/main/topic/533392-build-log-the-scrap-simulator-x/?p=7078757 (5 screen flight sim for 620$ CAD)LTT Web Challenge is back ! go here  :  http://linustechtips.com/main/topic/448184-ltt-web-challenge-3-v21/#entry601004

Link to comment
https://linustechtips.com/topic/233656-web-page-acess-code/#findComment-3193092
Share on other sites

Link to post
Share on other sites

well actually this is only to prevent kids from fooling around on a separate text modifiable zone where we put important messages and info about certain cadets. im pretty sure none of them even knows what a source code is :P thanks for the help !

 

If it's really not that important than a simple low security measure is fine. Something server side through a language like PHP, Ruby, ASP.NET would be better than javascript though. A simple login with a session and some redirects on each secure page is probably good enough. If you have some form of message board than I'd imagine you'll have some form of server side programming anyway so it's not much to add.

 

Being something you implement yourself, it'll probably be vulnerable in some ways, but like you said, that's not a big deal in this case.

Link to comment
https://linustechtips.com/topic/233656-web-page-acess-code/#findComment-3193145
Share on other sites

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×