[Problem]How to create a password protected web page

Go down

[Problem]How to create a password protected web page

Post by assasinss on July 11th 2011, 4:23 pm

uhm.. Hi everyone,
Can i ask about this script below By Mr. Typlo created.
Where could i put this script please give me a full tutorial cause i am new here i dont know what are head tags & body tags located please help me on where could i paste it and one more thing can this work on my punbb forum? Please provide me a tutorial please i cant understand it cause theres no tutorial that where could i put it tnx hope that anyone could help me solve this problem.

Credits :
Tutorial & Script Created by Master Marc. Credits to his Website Design and Coding Forum.

Note : Since we can't create password protected forums, I've created a substitute. JavaScript isn't secure, by the way.

How To Create A Password Protected Web Page :

Open your notepad on your computer. Once your notepad is opened, copy and paste this below into the head tags of your web page :

<script language="javascript">


function PlanA() {

var password = "Marc"

var pass = prompt("Enter in the password"," ")

if (pass.toLowerCase() == password) {

window.location = "http://www.iwebbuddy.com";


else {

window.location = "Typlo";





Just replace the text 'Marc' with your own password and replace 'iwebbuddy.com' with the hidden web page's domain name.

Replace 'Typlo' with the link that would be used to display another web page if someone entered an incorrect password.

If you don't follow my steps above, you might see a Not Found Page or be redirected to the homepage of your forum.

Once you've added my script in the head tags of your web page, insert this into your body tags of your web page :

<a href="#" onClick="PlanA(); return false">Click Here To Enter Password !</a>

Congratulations! You've created your very own password protected page.

You can use links to your forum in the script, so that you can hide the forum and use this tool to access your hidden forum.

Live Working Demo :

Click Link : http://marctestforum2.forumotion.com/demo-password-protect-forum-h29.htm

For More Information :

Read more about this script : How to create a password protected web page

New Member

Male Posts : 15
Reputation : 0
Language : English,Filipino
Location : Philippines

Back to top Go down

Re: [Problem]How to create a password protected web page

Post by KingOfSports on July 11th 2011, 10:44 pm

You can put it in an HTML page.

ACP >Modules > HTML page management (I think)

Male Posts : 2487
Reputation : 38
Language :
Location :

Back to top Go down

Back to top

Permissions in this forum:
You cannot reply to topics in this forum