What a robots.txt file controls
Before a well-behaved crawler fetches a page, it reads /robots.txt at the root of the host. The file says which paths each crawler may request. It controls crawling, not indexing: a blocked URL can still appear in Google if other sites link to it. To keep a page out of search results, let it be crawled and add a noindex tag instead.
Each subdomain needs its own file. https://blog.example.com/robots.txt is separate from https://example.com/robots.txt, and a file in a subfolder is ignored.
How to create a custom robots.txt file
Most sites need only a few lines: one group for all crawlers that blocks private or duplicate areas, and a Sitemap line. Add a named group only when one crawler needs different rules.
A common starting point for a blog or business site, including a custom robots.txt for Blogger or WordPress:
- User-agent: * with Disallow lines for admin, login, cart, checkout and internal search result pages.
- No rules that block CSS, JavaScript or image folders: Google needs them to render the page.
- A Sitemap line with the full URL of your sitemap or sitemap index.
- For Blogger, paste the result into Settings, Crawlers and indexing, Custom robots.txt. For WordPress, upload the file to the site root or paste it into your SEO plugin's robots.txt editor.
Robots.txt rules for AI crawlers
AI companies publish the user-agent names their crawlers use, so you can allow or block each one. GPTBot (OpenAI), ClaudeBot (Anthropic), PerplexityBot (Perplexity) and CCBot (Common Crawl) each read their own group, and Google-Extended controls whether Google may use your content for Gemini.
Blocking a crawler is a trade-off. It keeps your pages out of that company's crawls, but it can also keep them out of the answers its assistant builds from crawled pages. Decide per bot, and check later which bots actually visit.
2026 में आपको कस्टम Robots.txt क्रिएटर की आवश्यकता क्यों है
हमारा मुफ़्त robots.txt जेनरेटर टूल आपको अपनी वेबसाइट के लिए उचित robots.txt फ़ाइलें बनाने में मदद करता है।
Robots.txt फ़ाइलें यह नियंत्रित करने के लिए आवश्यक हैं कि सर्च इंजन आपकी वेबसाइट को कैसे क्रॉल करते हैं और यह आपके एसईओ प्रदर्शन को
काफ़ी हद तक प्रभावित कर सकती हैं।
इस robots.txt मेकर का उपयोग कैसे करें
robots.txt फ़ाइल जनरेट करने के लिए, बस उन बॉट्स को चुनें जिन्हें आप अनुमति देना या रोकना चाहते हैं।
हमारा robots txt बिल्डर फिर आपके लिए कोड तैयार करता है जिसे आप कॉपी और पेस्ट कर सकते हैं।
AI स्क्रैपर्स (GPTBot, ClaudeBot) को ब्लॉक करने के लिए Robots.txt फ़ाइलें कैसे जनरेट करें
AI एजेंट्स के बढ़ने के साथ, अपनी बौद्धिक संपदा (intellectual property) की सुरक्षा के लिए GPTBot, ClaudeBot, और OpenAI-SearchBot जैसे AI स्क्रैपर्स को रोकना पहले से कहीं अधिक महत्वपूर्ण हो गया है। हमारा टूल आपको इन आधुनिक AI क्रॉलर्स के अनुकूल निर्देश आसानी से जनरेट करने में मदद करता है।
मुख्य विशेषताएँ
- आसान कॉन्फ़िगरेशन: Simple interface to set up directives
- प्रीसेट टेम्पलेट्स: Quick templates for common use cases
- कस्टम निर्देश: Add custom allow, disallow, and other directives
- तत्काल जनरेशन: Get your robots.txt file ready for upload
- पंजीकरण की आवश्यकता नहीं: Use the tool immediately without signing up
सामान्य उपयोग के मामले
- सभी क्रॉलर्स को आपकी साइट तक पहुँचने की अनुमति दें
- एडमिन क्षेत्रों और निजी सामग्री तक पहुँच को ब्लॉक करें
- API एंडपॉइंट्स की क्रॉलिंग को नियंत्रित करें
- सर्वर सुरक्षा के लिए क्रॉल देरी सेट करें
- अपने XML साइटमैप की ओर इशारा करें
अपनी जनरेट की गई Robots.txt का उपयोग कैसे करें
- जनरेट की गई robots.txt फ़ाइल डाउनलोड करें
- इसे अपनी वेबसाइट की रूट निर्देशिका (जैसे, yourdomain.com/robots.txt) पर अपलोड करें
- अपनी साइट के क्रॉल आँकड़ों की निगरानी करें
सर्वोत्तम प्रथाएँ (Best Practices)
- अपनी robots.txt फ़ाइल को सरल और स्पष्ट रखें
- तैनाथ (deploy) करने से पहले अपनी robots.txt फ़ाइल का परीक्षण करें
- संवेदनशील जानकारी छिपाने के लिए robots.txt का उपयोग न करें
- robots.txt में अपना साइटमैप URL शामिल करें
- बड़ी साइटों के लिए उचित क्रॉल विलंब (crawl delays) का उपयोग करें