. How to make a Random Posts Safelink on Main Blog - Blogger Byte -->

Iklan Header


How to make a Random Posts Safelink on Main Blog

Yes !! With the Safelink Random Post on your Main Blog does not need the help of other people's templates, but instead of uses our own personal templates or even our favorite templates.

Previously i posted a article on, " How to Make Safelink on the Main Blog ",This time the method is different, i.e. the intended safelink link is a random post.

The benefits obtained besides us succeeded in making the Main Blog have a Safelink page which is as follows.

  • The intended safelink link is not just one page but Random Random Posts
  • Not complicated to make the script
  • The script is simplified in such a way as possible
  • Easy to practice
  • Does not use a variety of CSS that makes us confused
  • We come to know the script function of the network Safelink

What are Safelink Blogs for?

Many Bloggers who use the Blog Safelink to be used as additional income on the Blog where the Safelink Blog there are Google AdSense ads.

What kind of blogs use Safelink Blog?

Blog Safelink is often used for blogs that contain or contain links to be addressed, such as download Blogs which put a link on each post to go to the link you want to address.

We need to know, Blogger is very vulnerable to creating a Blog Download, moreover the Blog has Ads from Google AdSense, in the sense that the Blog establishes a cooperative relationship with Google advertising which contains various policies that we must comply with.

What is the right blog to create a Safelink Blog?

Nonetheless. Safelink Blogs are applied to download Blogs, and Blogs that link to a post.

We could have created a Blog which shares a template download link for free or even the Blog on the Demo link must first go to the safelink page and then to the actual link.


Before entering the tutorial, let's first discuss what is Safelink so that we better understand the function of Safelink itself.

Safelink is a directed link diversion, such as you want to create a link to go to the youtube link, before heading to the youtube link, the link will go through safelink first.

Is Safelink safe from hacks, viruses, etc.? Of course not.

Indeed, many who interpret Safelink is simply a matter of a date that is or is not a malware. By using safelink, the user of the download url can be spared from several viruses that are detected.

Not all Safelink scripts have the same function as the explanation above, which is where Safelink is a page for securing links from various viruses and malware.

In general, the Safelink script is the same, using code var Base64, which functions to transfer the URL link data.

So Safelink is not safe? not so, that's not what I meant, but every script from Safelink is generally the same, but another script might be added for functions that are not the same as the Safelink script.

So is "The Easiest Way to Safelink Random Post on the Main Blog" on this post? Whether or not a Safelink Page is created is safe, it depends on the Blog user who provides the Safelink page itself.

An example of this, namely A Blog, the owner of which activates the URL link to go to the link which is actually a hacked link or a negative link so who is to blame who? the Safelink script or the Blog Owner?

In conclusion, Safelink itself is a redirect URL link that you want to go to through a certain page first.



What is needed or preparation to make Safelink Random Post on the Main Blog?

The following are the requirements to make a Safelink Random Post on the Main Blog.

The need to make a Safelink Random post on the Main Blog

  1. Safelink buttons css.
  2. Redirect script code ?m=1 and &m=1 for the mobile version.
  3. Prepare several Blog posts.
  4. Safelink script code.

Steps to create a Random Post Safelink on the Main Blog

1. Login Blogger.com & Edit HTML

2. Copy the css code below, then place it just abobe </style> or ]]></b:skin>

/* Safelink buttons by bloggerbyte.net */
.button1{display: inline-block;padding: 6px 20px;margin: 15px 0 10px 0;border: 1px solid #ddd;font-size: 13px;color: #414141;border-radius: 30px;cursor: pointer;transition: all 0.3s ease}
.button1:hover{background: linear-gradient(to right, #5b86e5, #36d1dc);border-color: #5b86e5;color: #fff}
.visit-link,#daplong{margin-right: 0;padding: 7px 30px;line-height: 25px;font-family: Lato, sans-serif;transition: all 0.3s ease-in-out}
.visit-link{padding: 7px 50px}
#HTML99,#HTML99 .widget-content{border: 0!important;margin: 0!important;padding: 0!important}

Put the css code like this


3. Copy the code below and place it or paste it directly above the code </head>


<script type='text/javascript'>
var uri = window.location.toString();
if (uri.indexOf(&quot;%3D&quot;,&quot;%3D&quot;) &gt; 0) {
  var clean_uri = uri.substring(0, uri.indexOf(&quot;%3D&quot;));
    window.history.replaceState({}, document.title, clean_uri);
}
var uri = window.location.toString();
if (uri.indexOf(&quot;%3D%3D&quot;,&quot;%3D%3D&quot;) &gt; 0) {
  var clean_uri = uri.substring(0, uri.indexOf(&quot;%3D%3D&quot;));
    window.history.replaceState({}, document.title, clean_uri);
}
var uri = window.location.toString();
if (uri.indexOf(&quot;&amp;m=1&quot;,&quot;&amp;m=1&quot;) &gt; 0) {
  var clean_uri = uri.substring(0, uri.indexOf(&quot;&amp;m=1&quot;));
    window.history.replaceState({}, document.title, clean_uri);
}
var uri = window.location.toString();
if (uri.indexOf(&quot;?m=1&quot;,&quot;?m=1&quot;) &gt; 0) {
  var clean_uri = uri.substring(0, uri.indexOf(&quot;?m=1&quot;));
    window.history.replaceState({}, document.title, clean_uri);
}
</script>

Put the code like this


3. Make a few new posts and add a little touch of the code below in HTML mode, not in Compose mode ... If you put the code below in HTML mode then we open Compose mode and then return to HTML mode there will be an error too . So try not to open compose mode. If you are forced to be curious, please do not open compose mode after placing the code below, then return to HTML mode again and fix the href = #linkcode or the topmost code by removing the code before the # code in the code #link.


<center>
<a class="button1" href="#link" title="Go to Download link">Go To Download Link</a></center>
--- Article ---

--- Image / Article ---

--- Article ----

<center>
<div id="link">
</div>
<script type="text/javascript">
//<![CDATA[
function changeLink() {
    var e = Base64.decode(res);
    window.open(e, "_blank")
}
var currentURL = location.href,
    str = currentURL,
    res = str.replace("Post/Page URL.html?url=", "");
document.write('<a class="visit-link button1" style="cursor:pointer" onclick="changeLink()">Click Here To Download</a>');onload: generate();//]]>
</script></center>

--- Article ---

--- Image / Article ---

--- Article ---

Replace the Post/Page URL.html with the URL of the post page that we created.
The URL page must match the URL of your post, because later when we make a new post again, the code above or the Post/Page URL.html will be different.
Maybe the URLs we save in notepad first fall with a simple writing format to distinguish the URL page 1 with another page URL.
URL page 1: https: // .......... html
URL page 2: https: // .......... html
URL page 3: https: // ....... ...html
URL page 4: https: // .......... html
Do it So that later we are easy to continue the next step.

4. Copy the code below and place it or paste it directly above the code </body> in the HTML Edit in the Blogger Dashboard .



<script type='text/javascript'>
var Base64={_keyStr:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",encode:function(input){var output="";var chr1,chr2,chr3,enc1,enc2,enc3,enc4;var i=0;input=Base64._utf8_encode(input);while(i&lt;input.length)
{chr1=input.charCodeAt(i++);chr2=input.charCodeAt(i++);chr3=input.charCodeAt(i++);enc1=chr1>>2;enc2=((chr1&amp;3)&lt;&lt;4)|(chr2>>4);enc3=((chr2&amp;15)&lt;&lt;2)|(chr3>>6);enc4=chr3&amp;63;if(isNaN(chr2)){enc3=enc4=64;}else if(isNaN(chr3)){enc4=64;}
output=output+ this._keyStr.charAt(enc1)+ this._keyStr.charAt(enc2)+ this._keyStr.charAt(enc3)+ this._keyStr.charAt(enc4);}
return output;},decode:function(input){var output="";var chr1,chr2,chr3;var enc1,enc2,enc3,enc4;var i=0;input=input.replace(/[^A-Za-z0-9\+\/\=]/g,"");while(i&lt;input.length)
{enc1=this._keyStr.indexOf(input.charAt(i++));enc2=this._keyStr.indexOf(input.charAt(i++));enc3=this._keyStr.indexOf(input.charAt(i++));enc4=this._keyStr.indexOf(input.charAt(i++));chr1=(enc1&lt;&lt;2)|(enc2>>4);chr2=((enc2&amp;15)&lt;&lt;4)|(enc3>>2);chr3=((enc3&amp;3)&lt;&lt;6)|enc4;output=output+ String.fromCharCode(chr1);if(enc3!=64){output=output+ String.fromCharCode(chr2);}
if(enc4!=64){output=output+ String.fromCharCode(chr3);}}
output=Base64._utf8_decode(output);return output;},_utf8_encode:function(string){string=string.replace(/\r\n/g,"\n");var utftext="";for(var n=0;n&lt;string.length;n++){var c=string.charCodeAt(n);if(c&lt;128){utftext+=String.fromCharCode(c);}
else if((c>127)&amp;&amp;(c&lt;2048)){utftext+=String.fromCharCode((c>>6)|192);utftext+=String.fromCharCode((c&amp;63)|128);}
else{utftext+=String.fromCharCode((c>>12)|224);utftext+=String.fromCharCode(((c>>6)&amp;63)|128);utftext+=String.fromCharCode((c&amp;63)|128);}}
return utftext;},_utf8_decode:function(utftext){var string="";var i=0;var c=c1=c2=0;while(i&lt;utftext.length){c=utftext.charCodeAt(i);if(c&lt;128){string+=String.fromCharCode(c);i++;}
else if((c>191)&amp;&amp;(c&lt;224)){c2=utftext.charCodeAt(i+ 1);string+=String.fromCharCode(((c&amp;31)&lt;&lt;6)|(c2&amp;63));i+=2;}
else{c2=utftext.charCodeAt(i+ 1);c3=utftext.charCodeAt(i+ 2);string+=String.fromCharCode(((c&amp;15)&lt;&lt;12)|((c2&amp;63)&lt;&lt;6)|(c3&amp;63));i+=3;}}
return string;}}
var encode=document.getElementById('encode'),decode=document.getElementById('decode'),output=document.getElementById('output'),input=document.getElementById('input');var User_ID="";var protected_links="";var a_to_va=0;var a_to_vb=0;var a_to_vc="";function auto_safelink(){auto_safeconvert();}
function auto_safeconvert(){var a_to_vd=window.location.hostname;if(protected_links!=""&amp;&amp;!protected_links.match(a_to_vd))
{protected_links+=", "+ a_to_vd;}else if(protected_links=="")
{protected_links=a_to_vd;}
var a_to_ve="";var a_to_vf=new Array();var a_to_vg=0;a_to_ve=document.getElementsByTagName("a");a_to_va=a_to_ve.length;a_to_vf=a_to_fa();a_to_vg=a_to_vf.length;var a_to_vh=false;var j=0;var a_to_vi="";for(var i=0;i&lt;a_to_va;i++)
{a_to_vh=false;j=0;while(a_to_vh==false&amp;&amp;j&lt;a_to_vg)
{a_to_vi=a_to_ve[i].href;if(a_to_vi.match(a_to_vf[j])||!a_to_vi||!a_to_vi.match("http"))
{a_to_vh=true;}
j++;}
if(a_to_vh==false)
{var encryptedUrl=Base64.encode(a_to_vi);
var x=Math.floor((Math.random()*4)+ 1);
var xxx=null;
if(x=="1"){xxx="Year / Month / URL page1.html"}
if(x=="2"){xxx="Year / Month / URL page2.html"}
if(x=="3"){xxx="Year / Month / URL page3.html"}
if(x=="4"){xxx="Year / Month / URL page4.html"}
a_to_ve[i].href="https://blogURL.blogspot.com/"+xxx+"?url="+ encryptedUrl;a_to_ve[i].rel="nofollow";a_to_vb++;a_to_vc+=i+":::"+ a_to_ve[i].href+"\n";}}
var a_to_vj=document.getElementById("anonyminized");var a_to_vk=document.getElementById("found_links");if(a_to_vj) {a_to_vj.innerHTML+=a_to_vb;}
if(a_to_vk)
{a_to_vk.innerHTML+=a_to_va;}}
function a_to_fa()
{var a_to_vf=new Array();protected_links=protected_links.replace(" ","");a_to_vf=protected_links.split(",");return a_to_vf;}
protected_links =&#39;facebook.com,twitter.com,youtube.com,instagram.com,blogURL.blogspot.com,1.bp.blogspot.com,2.bp.blogspot.com,3.bp.blogspot.com,4.bp.blogspot.com,5.bp.blogspot.com&#39;;
auto_safelink();
</script>
<style>a{cursor:pointer}</style>

Set Up script Like This



Pay attention to the code var x=Math.floor((Math.random()*4)+ 1); replace number 4 with the number of posts you want to make the Safelink page earlier. here I make a safelink page with the number 2 in accordance with the demo that I made below (see in the image).

In the code there are years / months / and sub URL page.html. Change the Year, Month, and Sub URL page that matches the URL of the post we made earlier. the example below with the URL page that we read this.

https://www.bloggerbyte.net/2020/01/random-post-safelink-on-main-blog.html

In the example of the right link above, there is a URL page that contains elements of Year, Month, and sub URL pages that match the URL of the post we are reading. We replace all the code that we need to replace from Year, Month, sub URL page with the URL page some of the posts we made earlier from URL page 1, URL page 2, URL page 3 and URL page 4 (you can increase or decrease the pages or post according to you) that we saved in the notepad earlier.

Replace the blogURL code with our blogURL code example bloggerbyte1.blogspot.com - in image

Pay attention to the code protected_links =, the code is a Protected Link which when we fill in various domain links or website links will not lead to the safelink page. So it is mandatory to change but not everything has to be changed, because there are some important links that are required to be changedProtected Link , for example 1.bp.blogspot.com, 2.bp.blogspot.com, 3.bp.blogspot.com, 4.bp.blogspot.com and 5.bp.blogspot.com where the link is the link code from Default image from Blogger itself. So if we remove the link code will result in an image that we have displayed on every post on our Blog will lead to the safelink page first to see the image when clicked on the picture.

What must be changed in the Protected Link is blogURL.blogspot.com or your website link, such as the example blogURL on bloggerbyte1, namely bloggerbyte1.blogspot.com - as above image without the code https:// in front of it.

For the code <style>a {cursor:pointer}</style> is the CSS of the link when directed to the cursorwhile on the link, the cursor is in the shape of a hand which illustrates that the text highlighted by the cursor has a link inside it.


5. Save our theme.

That's it you have successfully implemented "Random Posts Safelink on Main Blog". Has anyone still not been able to practice this method? If it still exists, please comment on the comments box.

Demo

Thank you for visiting and hopefully useful.

Download Link Of Theme: - Click Here or copy Url Below
https://www.ebooksfree4u.com/p/download-link-galaxymag-redesign.html

logo
A Website Speed Is Our Priority.
  • Facebook
  • WhatsApp
  • Instagram
  • SHARE

    Subscribe Our Newsletter

    Related Posts

    Open Comments
    Close Comments

    0 Response to "How to make a Random Posts Safelink on Main Blog"

    Post a comment

    Iklan Atas Artikel

    Iklan Tengah Artikel 1

    Iklan Tengah Artikel 2

    Iklan Bawah Artikel