Hello everyone, I'm going to share How To Create Custom Robots.txt Tools For Blogger. Or, custom robots.txt generator tools for bloggers and WordPress 2022 also. robots txt Source Code I'm going to share with you today. So, let's go.
![]() |
| How To Create Custom Robots.txt Tools For Blogger Full Script |
How to Create Custom Robots.txt Tools Blogger Steps by Steps
- 1. Go to Your Blogger Desbroad
- 2. Click Pages
- 3. Click +NEW PAGE
- 4. Page Title
- 5. Click HTML View
Then Paste This Code
<h2 class="has-text-align-center" style="color: black; font-size: 20px; position: relative; top: 10px;"><strong>Robots.txt Generator</strong></h2>
<div style="background: rgb(255, 255, 255); border-color: #f0f3f4; border-radius: 8px; border: 2px dashed rgb(166, 172, 175); padding: 10px 0px; position: relative; width: auto;">
<center>
<button class="buttonpost" id="bloggerstyle" onclick="blogger()"><b>Blogger</b></button>
<button class="buttonpost" id="wordpressstyle" onclick="wordpress()" style="background: rgb(255, 255, 255);"><b>WordPress</b></button>
<br />
<h6 class="spanpost"><b>Generate Robots.txt For <span id="website" style="color: lime;">Blogger</span></b></h6><br />
<span id="tagurl" style="color: #a6acaf; font-size: 12px; position: relative; top: 10px;">Enter Your Website URL with ‘https://’</span>
<input class="inputpost" id="urlinput" type="url" value="https://www.example.com" /><br />
<button class="buttonpost" id="generate" onclick="generate()" style="margin-bottom: 15px; position: relative; top: 5px;"><b>Generate</b></button>
<div id="loadingi" style="display: none;">
<div style="text-align: center;">
<!--Loading-->
Processing...</div>
</div>
<textarea id="robots.txt" readonly="" style="background: rgb(255, 255, 255); border-radius: 10px; display: none; font-size: 13px; height: 300px; outline: none; resize: none; width: 280px;" type="url"></textarea> <br />
<button class="buttonpost" id="copy.txt" onclick="copy()" style="display: none; position: relative; width: 100px;"><b>Copy</b></button>
<button class="buttonpost" id="refresh_me" onclick="document.location.reload(true)" style="display: none; position: relative; width: 100px;" value="Reload Page"><b>Refresh</b></button>
<span111 id="txtfile" style="display: none;"># robots.txt generated by btemplateboxs.blogspot.com/
User-agent: *
Disallow: /search/
Disallow: /blog/page/
Allow: /
Sitemap:
</span111>
<span121 style="display: none;"># robots.txt generated by rantts.com
User-agent: *
Disallow: /search/
Disallow: /blog/page/
Allow: /
Sitemap:
</span121>
<span122 style="display: none;"># robots.txt generated by rantts.com
User-Agent: *
Allow: /wp-content/uploads/
Allow: /wp-admin/admin-ajax.php
Disallow: /wp-content/plugins/
Disallow: /wp-admin/
Disallow: /blog/page/
Disallow: /search/
Sitemap:
</span122>
</center>
</div>
<style>
#pathl{stroke:#444444; fill:none; stroke-width:2;stroke-dasharray:316;animation:path 1s infinite linear;}@keyframes path{to{stroke-dashoffset:632;}}
.has-text-align-center{text-align:center}
.buttonpost{color:#444444; outline:none; background:#00ff00; margin-right:5px; width:110px; height:30px; font-size:16px; border-radius:10px; margin-left:5px; }
.spanpost{color:#444444; font-size:16px; }
.inputpost{position:relative;width:80%;line-height:0.5em;font-size:12px;color:#455065;background:#ebeff3;margin-top:5px;padding:15px;border-radius:8px;border:none;outline:0;}
</style>
<script>
<!--Main Script-->
function blogger(){var e=document.querySelector("span121").innerHTML;document.getElementById("txtfile").innerHTML=e,document.getElementById("website").innerHTML="Blogger",document.getElementById("wordpressstyle").style.background="#fff",document.getElementById("bloggerstyle").style.background="#00ff00"}function wordpress(){var e=document.querySelector("span122").innerHTML;document.getElementById("txtfile").innerHTML=e,document.getElementById("website").innerHTML="WordPress",document.getElementById("bloggerstyle").style.background="#fff",document.getElementById("wordpressstyle").style.background="#00ff00"}function generate(){var e=[document.querySelector("span111").innerHTML+document.getElementById("urlinput").value+"/sitemap.xml"];document.getElementById("loadingi").style.display="block",document.getElementById("robots.txt").style.display="block",document.getElementById("urlinput").style.display="none",document.getElementById("tagurl").style.display="none",document.getElementById("generate").style.display="none",setTimeout(function(){document.getElementById("loadingi").style.display="none"},5e3),setTimeout(function(){document.getElementById("copy.txt").style.display="block",document.getElementById("refresh_me").style.display="block"},5100),setTimeout(function(){document.getElementById("like").style.display="block"},5100),setTimeout(function(){!function t(n){n<e[n].length&&function e(t,n,o){n<t.length&&(document.getElementById("robots.txt").innerHTML=t.substring(0,n+1),setTimeout(function(){e(t,n+1,o)},50))}(e[n],-5,function(){t(n+1)})}(0)},5100)}function copy(){document.getElementById("robots.txt").select(),document.execCommand("copy"),document.getElementById("copy.txt").innerHTML="<b>Copied</b>"}
</script>
If you perfectly create everything properly then your page will look like this type Create robot.txt
If any problem creating then email me: ransooq@gmail.com
