Blogger Robots.txt File Generator
Here is the full description of the Blogger Robots.txt file:
What Is Robots.txt File ?
Robots.txt is a small text file that tells search engine bots:
- Which pages they are allowed to crawl.
- Which pages they should not crawl.
- Where your sitemap is located.
Explanation :
User-agent: Mediapartners-Google
Disallow:
Means:
Mediapartners-Google is the Google AdSense crawler.
Disallow: is empty, which means AdSense is allowed to crawl everything.
Why This Is Important:
AdSense needs full access to:
- Scan your content
- Display relevant ads
If blocked:
- Ads may not show properly and Earnings may decrease.
- This setup is correct and AdSense-safe.
User-agent: *
Means:
* means all search engine bots, including: Googlebot, Bingbot, Yahoo bot, DuckDuckBot, Yandex
The rules below apply to all of them.
Disallow: /search
What It Blocks:
Blogger search result pages like:
/search?q=keyword
/search/label/seo
Why Block It?
- These are duplicate or thin content pages.
- They are not useful landing pages.
- They can harm SEO if indexed.
- Blocking them improves SEO quality.
Disallow: /*?updated-max=
What It Blocks:
Archive pagination URLs like:
?updated-max=2026-02-19
Why Block It?
- These create multiple versions of the same content.
- Waste crawl budget.
- Cause duplicate content issues.
Disallow: /*?max-results=
What It Blocks:
URLs like:
?max-results=5
These show limited posts per page.
Why Block It?
- Search engines may treat them as separate pages.
- Leads to duplicate content problems.
Disallow: /*?m=1
What It Blocks:
Mobile version URLs like:
https://yourblog.blogspot.com/?m=1
Why Block It?
- Google may see mobile version as a separate URL.
- Causes duplicate indexing.
- Blocking it prevents duplication.
Allow: /
What It Means:
Allows search engines to crawl the entire main website.
This ensures:
- Blog posts are crawlable
- Pages are crawlable
- Homepage is crawlable
Sitemap: https://youblog.blogspot.com/sitemap.xml
What It Does:
Tells search engines where your sitemap is located.
Why It Is Important:
- Helps faster indexing
- Helps search engines discover new posts
- Improves SEO performance
SEO Analysis of Your Robots.txt
Your configuration:
- Blocks duplicate URLs
- Saves crawl budget
- AdSense safe
- Blogger optimized
- Prevents mobile duplication
- SEO friendly
This is a recommended setup for Blogger.
Important Note
Robots.txt:
Controls crawling
Does NOT control indexing
If you want to prevent indexing of a page, you must use:
<meta name="robots" content="noindex">
Is This Robots.txt Safe?
Yes.
It is: Safe for Blogger, Safe for Google, Safe for AdSense, SEO optimized, Beginner friendly.
How To Add Robots.txt in Blogger
- Go to Blogger Dashboard
- Click Settings
- Scroll down → Crawlers and Indexing
- Enable → Custom robots.txt
- Click → Custom robots.txt Paste the code
- Click Save.
Add Robot.txt File Generate Widgets For Blogger Blog
- Go to Layout
- Click Add a Gadget
- Select HTML/JavaScript
- Paste Full Code
<div class="robot-box">
<h2>Blogger Robots.txt Generator</h2>
<input type="text" id="blogUrl" placeholder="Enter your Blog URL (https://yourblog.blogspot.com)" />
<button type="button" onclick="generateRobots()">Generate Robots.txt</button>
<textarea id="output" readonly placeholder="Your robots.txt will appear here..."></textarea>
<button type="button" id="copyBtn" onclick="copyText()" style="display:none;">Copy Robots.txt</button>
</div>
<style>
.robot-box{
max-width:500px;
margin:30px auto;
padding:25px;
background:#ffffff;
border-radius:18px;
box-shadow:0 10px 30px rgba(0,0,0,0.1);
font-family:Arial, sans-serif;
text-align:center;
}
.robot-box h2{
margin-bottom:20px;
font-size:20px;
color:#333;
}
.robot-box input{
width:90%;
padding:12px;
margin-bottom:15px;
border:1px solid #ddd;
border-radius:10px;
font-size:14px;
}
.robot-box button{
width:100%;
padding:12px;
margin-top:10px;
border:none;
border-radius:30px;
background:#ff6b00;
color:#fff;
font-size:14px;
cursor:pointer;
transition:0.3s;
}
.robot-box button:hover{
background:#e85d00;
}
.robot-box textarea{
width:95%;
height:200px;
margin-top:15px;
padding:12px;
border:1px solid #ddd;
border-radius:12px;
font-size:13px;
resize:none;
}
</style>
<script>
function generateRobots(){
var url = document.getElementById("blogUrl").value.trim();
if(url === ""){
alert("Please enter your blog URL.");
return;
}
if(url.slice(-1) === "/"){
url = url.slice(0, -1);
}
var robotsText =
"User-agent: Mediapartners-Google\n" +
"Disallow:\n\n" +
"User-agent: *\n" +
"Disallow: /search\n" +
"Disallow: /*?updated-max=\n" +
"Disallow: /*?max-results=\n" +
"Disallow: /*?m=1\n\n" +
"Allow: /\n\n" +
"Sitemap: " + url + "/sitemap.xml";
document.getElementById("output").value = robotsText;
document.getElementById("copyBtn").style.display = "block";
}
function copyText(){
var copyText = document.getElementById("output");
copyText.select();
document.execCommand("copy");
alert("Robots.txt copied successfully!");
}
</script>
- Click Save.
Comments
Post a Comment