How To Add Password Protection on Your Site

By Pandora on November, 02, 2020

? : Published
? ID: 59945
Description: Put the code under the HEAD tag, than Replace PASSWORD-HERE with your own, than replace SITE-LINK with the home page link. Add this, to put a password for that PAGE so people cant get in without that password. [js]<script language="Javascript"> var password; var pass1="PASSWORD-HERE"; password=prompt('Enter your password in order to view this page!',' '); if (password==pass1) alert('Correct password, OK to enter!'); else { window.location="SITE-LINK"; } </script>[/js] Try and see if it works well for you.
iCUD - Wapka Comment System

Comment(s) 0

No Comment Has Been Posted Yet.
THIS IS A MOBILE SITE, PLEASE USE YOUR PHONE TO ACCESS IT, OR SHRINK YOUR TABLET OR PC SCREEN