Walk Lightly on this PLANET and yet leave such a FOOTPRINT that cannot be erased for thousands of Years..!!!
Visit Codstech for Cyber Security related Posts !

Visitors

Thursday, October 27, 2022

Password protected page or post

  1.  Goto your Blog post or page
  2. Click on HTML view option of the post or page (left side)
  3. Paste the below code : 
                    

<SCRIPT LANGUAGE="JavaScript"> var password = 'Password' password=prompt('This is password protected page, please enter password to continue.',''); if (password != 'Password') { location.href='http://www.codstech.org/'; } </SCRIPT>


4. Click update . Replace password and that blogaddress as you desired.