2022年4月7日

將Blogger文章設定密碼鎖

私密文章設定 (2022/4/8)

參考自Tomy部落格的方式:
採用Javascript的方法,用最簡單的方式於HTML編輯頁上加上以下程式碼即可達成

按此取得程式碼

<script type="text/javascript"> 
/* Password Protection */
var password = 'password'
password=prompt('Please enter the password to enter this page:','');
if (password != 'password') {
location.href='http://zilchide.blogspot.com/';
}
</script>


Password 改為你自訂的密碼
http://blog.tomy168.com 改為您的網站首頁網址

沒有留言: