
How to add license key protection?
Before doing these steps we recommend you to take a backup of your template, By chance if any mistake has been done you can restore it later!
- First, go to your Blogger dashboard
- Then click on the Theme option
- Then click on the drop-down icon near Customize option
- Then click on the Edit HTML option from the drop-down menu
- Make sure you installed jQuery in your Blogger theme if not then add this jQuery just above
</head>
- Now find
</body>
and paste this JS just above it
<script src ='https://cdnjs.cloudflare.com/ajax/libs/jquery/3.5.1/jquery.min.js'/>
We recommend you put this script under another script by removing <script>/*<![CDATA[*/
/*]]>*/</script>
tags from this js and encrypt it!
<script>/*<![CDATA[*/$('a#password_here').attr('href', 'url_here').text('password_here').attr('style', 'visibility:visible!important;opacity:1!important;position:relative!important;z-index:1!important;font-size:14px!important;color:#fff!important;'); setInterval(function () { if (!$('#password_here').length) { window.location.href = 'url_here' } }, 1000)/*]]>*/</script>
Change highlighted password_here
text with your random password and url_here
with your link for redirect when license key is wrong!
-
Now add this HTML code below
</header>
or above any<b:section>
to add the license widget in Blogger Layout
<b:section class='license' id='widget-license' name=' ' showaddelement='false'> <b:widget id='HTML15' locked='true' title='License' type='HTML' version='2' visible='true'> <b:widget-settings> <b:widget-setting name='content'><![CDATA[<div id='password_here'/></div>]]></b:widget-setting> </b:widget-settings> <b:includable id='main'> <span><a href='url_here'/><data:content/></span> </b:includable> </b:widget> </b:section>
Change highlighted password_here
text with your random password otherwise it will redirect to the link that you added and url_here
with your link for redirect when the license key is wrong!
- Then Save HTML
How does it work?
Conclusion
Refrence :
Smart Tech Carry
Rate This Article
Thanks for reading: How to add license key protection in Blogger [Updated]:)
Conclusion
In this article, I have shared How to add license key protection in Blogger [Updated]. I hope you have liked it Please do share it with your friends and follow our blog for more.
Join our Telegram Channel to get the lastest posts updates daily. Thank you!