Protect Link With Login Id and Password Without Database

If you want to share any specific link on your website via specific login Id and Password, wait is over a simple and fine working script can do as per your needs also you can Protect Link With Login Id and Password Without Database.
Also it's a very simple and lighted weighted script which not affect total loading time of web pages. You can check demo from below:

Id: tricksway

Password: 12345

protect link via password


Password Protected Links JavaScipts Code, How It Works ?:

Dear, we are using simple JavaScipts for validating form via Id and Password, one things I want to clear this JavaScipt is not secured and real protection for your file it can be eaisly break down via source code. But you can make it more secure if you are using 'Self Hosted Blog' and enable HotLink protections.

If you are running Blogger blog than you can use code directly via below code:

 <script type="text/javascript" src=""></script>
 background: #333;
 padding: 10px;
 border: 2px solid #ddd;
 float: left;
 font-size: 1.2em;
 position: fixed;
 top: 50%; left: 50%;
 z-index: 99999;
 box-shadow: 0px 0px 20px #999;
 -moz-box-shadow: 0px 0px 20px #999; /* Firefox */
 -webkit-box-shadow: 0px 0px 20px #999; /* Safari, Chrome */
 border-radius:3px 3px 3px 3px;
 -moz-border-radius: 3px; /* Firefox */
 -webkit-border-radius: 3px; /* Safari, Chrome */
 img.btn_close {
 float: right;
 margin: -28px -28px 0 0;
 form.signin p, form.signin span {
 form.signin input:-moz-placeholder { color:#bbb; text-shadow:0 0 2px #000; }
 form.signin input::-webkit-input-placeholder { color:#bbb; text-shadow:0 0 2px #000; }
 /*This Script allows people to enter by using a form that asks for a
 UserID and Password*/
 function pasuser(form) {
 if ("tricksway") {
 if (form.pass.value=="12345") {
 } else {
 alert("Invalid Password")
 } else { alert("Invalid TokenID")
 <a href="#login-box" class="login-window"><center><b>Cheapest Web Hosting</b></center></a>
 <div id="login-box" class="login-popup">
 <a href="#" class="close"><img src="" class="btn_close" title="Close Window" alt="Close" /></a>
 <form name="login" method="post" class="signin" action="#">
 <div style="color:#ffffff;">Enter Detail To Unlock Web Link: </div><br/>
 <label class="username">
 <span>Token Id</span>
 <input name="id" type="text">
 <label class="password">
 <input name="pass" type="password">
 <input type="button" value="Login"
 <script type="text/javascript" src=""></script>

Download Source Code

Hope you love our hard work !, Take a second to like and share ... Thank you

Himanshu is a young engineer living in India. Currently working at Cognizant as a Senior Engineer. He is an ethical hacker & blogger too, doing lots of crazy stuff... If you seem interesting, go through his portfolio: : "Open Source. Millions of open minds can't be wrong!

3 comments: On Protect Link With Login Id and Password Without Database

  • Hello! I stumbled your website on Yahoo. I am making this comment to find out what theme
    you're using on your website, I would like to use the theme that
    you are using so I can use it on my website.

  • Thwse are aсtually impreѕsive ideas in concerning blogging.

    You ɦave touched some pleasant factorѕ here.

    Any way κeep up writing.

  • crampon pas cher

    I am not sure where you're getting your info, but great topic. I needs to spend some time learning more or understanding more. Thanks for wonderful info I was looking for this information for my mission.|

Leave a reply:

Your email address will not be published.

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Site Footer

Sliding Sidebar

We are India’s largest Startup Community

We are team of ' Delhi Startups ' , most active startup community with strict spam policy.
We are making !deas happen..for future, business and jobs without charging anything, with connecting entrepreneurs.. It's a reason to trust on us.
Come and join or subscribe, we will defiantly give a reason to like us.

Our Facebook Page