robots.txt is the smallest file on your site and one of the most dangerous. It is a few lines of plain text that tell crawlers where they may and may not go. Get it right and nobody notices. Get one line wrong and you can quietly remove your entire site from search, with no error message and no visible change for human visitors.
Most WordPress owners only touch it when something forces them to: a host’s support article, an SEO audit, or a plugin that asks for a rule. And the traditional way to edit it, connecting over FTP and changing a file in the site root, is exactly the kind of task people put off and then do in a hurry.
Rankify, the DaftPlug SEO and GEO plugin, includes a robots.txt editor in its free version, so you can edit robots.txt in WordPress from the dashboard instead of the server. This guide covers what robots.txt can and cannot do, how Rankify serves it, how to add rules safely, and the handful of mistakes that cause real damage.
What robots.txt actually controls
The single most important fact about robots.txt is in the Rankify documentation, and it is the one most often misunderstood: robots.txt controls crawling, not indexing.
A Disallow rule tells well-behaved crawlers not to fetch a URL. It does not tell search engines to drop that URL from their results. The docs spell out the consequence: a page blocked in robots.txt can still appear in results if other sites link to it, but with no description, because the crawler was never allowed to read it.
That leads to the rule that prevents the most common robots.txt mistake. If you want a page out of search results, do not block it. Mark it noindex and leave it crawlable, so the crawler can read the noindex directive. Rankify’s troubleshooting guide says the same thing for a page that is indexed when it should not be: set it to noindex, leave it crawlable, and do not block it in robots.txt. Removal takes a recrawl, and Search Console’s removals tool is faster if it is urgent.
So use robots.txt for what it is good at:
- Keeping crawlers out of areas that waste their time, such as endless filtered or parameter URLs.
- Telling crawlers where your sitemap is.
- Allowing or blocking specific crawlers, including AI crawlers.
And use noindex for decisions about what appears in search. If you are deciding which archives belong in the index, our guide to noindexing thin WordPress tag, author, and date archives covers that side.
How Rankify serves robots.txt
The setting lives at Rankify > Settings > Sitemaps, under Crawling. robots.txt Editor is on by default.
With it on, Rankify serves a robots.txt it generates, including a link to your sitemap and any AI crawler rules. Three properties from the documentation make this safer than editing a file by hand:
- Nothing is written to disk. The file is served virtually by WordPress. There is no file in your site root to forget about.
- Nothing is left behind. Deactivate Rankify and the rules stop applying. The product page puts it as “served virtually, so nothing is left behind on your server”.
- Invalid lines are dropped. Lines that are not valid robots.txt directives are removed, so a stray paste cannot corrupt the file.
The physical file trap
There is one situation where none of this works, and it catches people every time. A physical robots.txt file on disk always wins. WordPress only serves its virtual robots.txt when no real file exists at that path, because the web server finds the real file first and never asks WordPress.
If your rules are not appearing, the troubleshooting guide’s answer is to check your site root. If a file exists there, either delete it or edit it directly. Old SEO plugins, hosting control panels, and security tools sometimes create one and never remove it.
Adding your own rules
Below the toggle is Additional Rules, a text area for extra directives appended to the served robots.txt, one per line. The documentation’s example:
User-agent: SomeBot
Disallow: /private/
A few rules of the format that are worth knowing before you add anything:
- Groups start with
User-agent. Each group applies to the crawler it names, andUser-agent: *applies to every crawler without its own group. - Paths are prefixes.
Disallow: /privateblocks/private/,/private-sale/, and/privateer/. Add the trailing slash when you mean a folder. - Google and Bing support two wildcards.
*matches any sequence of characters and$anchors the end of the URL. Other crawlers may not support them. Crawl-delayis not universal. Google ignores it. Some other engines respect it.- More specific rules win for Google when
AllowandDisallowconflict, based on path length.
Then check the result in the Served Output preview directly underneath. It shows exactly what your robots.txt returns right now, including the sitemap reference and the AI crawler rules. The documentation’s instruction is to check it after any change, and that is the habit that prevents disasters.
The one line that removes your site from search
The Rankify docs do not soften this: robots.txt is the fastest way to remove a site from search. A stray Disallow: / takes everything out.
User-agent: *
Disallow: /
That pair of lines blocks every compliant crawler from every URL. It is the correct file for a private staging site and a catastrophic one for a live site, and it is very common for it to travel from one to the other during a launch or a migration.
Three habits keep it out of production:
- Read the served output after every edit. Not the text area. The output.
- Do not add a rule you cannot explain. The quickstart’s advice is to add directives only when you know exactly what you are blocking, because a wrong line can remove your whole site from search.
- Turn on the alert that watches for it. Rankify’s Email when something is badly wrong notification, at Rankify > Settings > Notifications, watches two conditions: the site has started blocking search engines, or the sitemap has stopped being served. It mails at most once a week while the problem lasts and goes quiet the moment it is fixed. The notifications guide recommends enabling it on every site.
Also check WordPress’s own switch. Under Settings > Reading, “Discourage search engines from indexing this site” is meant for staging and is easy to leave ticked after launch.
AI crawlers live in the same file
If you have strong feelings about AI crawlers, robots.txt is where they are expressed, and Rankify writes those rules for you.
On Rankify > Settings > AI & GEO, Allow AI Crawlers (on by default) lets GPTBot, ClaudeBot, PerplexityBot, and Google-Extended fetch your content, and the result is written into your robots.txt. For finer control, the AI crawler access list lets you allow or block crawlers one at a time. The Rankify product page describes it as sixteen crawlers across ten vendors, each explained, which is the difference from what it calls the typical SEO plugin’s approach: a robots.txt text box.
The docs make a point worth repeating here: turning AI crawlers off also removes you from AI answers that cite sources. If your objection is to training, use the per-crawler list to block training crawlers while allowing the ones that fetch pages to answer questions and name the source. Either way, use these settings rather than typing AI user agents into Additional Rules by hand, so the two do not contradict each other.
The sitemap line
The generated file references your sitemap, https://example.com/sitemap.xml, which Rankify serves as a paginated index split per post type and taxonomy. That line helps crawlers find it, but it does not replace submitting it. The sitemaps documentation is clear that generating a sitemap tells nobody it exists. Submit it in Google Search Console and Bing Webmaster Tools.
After switching SEO plugins
If you moved to Rankify from another SEO plugin, robots.txt is one of the things the migration guide tells you to check afterwards. Visit /robots.txt and confirm it references the right sitemap and contains no rules left over from the old plugin. If the old plugin wrote a physical file, that file is still winning, and you need to remove it before Rankify’s version is served.
Checking your work
The sitemaps documentation ends with a three-step check that takes two minutes:
- Open the sitemap at
/sitemap.xml. You should see an index linking to one file per type. - Open robots.txt at
/robots.txt. It should reference your sitemap. - Submit both in Google Search Console and Bing Webmaster Tools. Search Console then reports what it actually indexed, which is the number that matters.
Search Console also has a robots.txt report showing the version Google last fetched and any problems it found. After a change, that report is how you confirm Google has seen the new file.
For developers
The relevant settings keys are robotsTxt (default on) and robotsTxtContent, which holds your additional rules. Per-page robots directives are a separate system: the rankify_meta_robots filter controls the robots meta tag for the current page. Keep the two straight in code the same way you do in strategy. robots.txt decides what crawlers fetch, and the meta tag decides what gets indexed.
Free and Pro
The robots.txt editor, additional rules, served output preview, XML sitemaps, per-type noindex, AI crawler controls, and the Email when something is badly wrong alert are all part of the free version. The free version is a complete SEO plugin.
Pro adds the parts that do ongoing work: automatic redirects on slug change, internal link suggestions and orphan detection, answer blocks, IndexNow, verified crawler identity with 90 days of history, AI referral tracking, news and video sitemaps, and the role manager. Pro is sold as the DaftPlug membership, so one license unlocks Rankify along with Progressify, Lightify, Generatify, and Snapshotify, and plans differ only in the number of site activations. See the pricing page, including the 14-day money-back guarantee.
Quick checklist
- Check your site root for a physical robots.txt, and remove it if you want Rankify to manage the file.
- Leave robots.txt Editor on.
- Add rules only when you can explain exactly what they block.
- Read the Served Output after every change.
- Never block a page you want removed from search. Noindex it instead.
- Manage AI crawlers with the AI & GEO settings, not hand-typed rules.
- Enable Email when something is badly wrong.
- Confirm the sitemap line, then submit the sitemap to Google and Bing.
robots.txt should be boring. With the file served from your dashboard, invalid lines dropped, and an alert watching for the one mistake that matters, it can finally be the file you set once and stop worrying about.


