To decide how to block AI crawlers from scraping my website, first separate AI training from search discovery and citation. Use carefully scoped robots.txt rules, review the policies of individual providers, and do not assume that blocking one crawler stops every form of automated access.
Also treat third-party JavaScript as a security decision, not just a performance decision. After the October 31, 2026 report about attackers hijacking DebugBear’s DNS, WordPress owners should inventory every external script, remove anything that is no longer trusted, and monitor search traffic instead of guessing what AI search is doing.
Key takeaways
- Decide whether you want to prevent AI training, preserve AI search visibility, or do both selectively.
- Review robots.txt and any AI-crawler controls after documenting the business reason for each rule.
- Audit third-party scripts, DNS-related services, WordPress accounts and unexpected site changes.
- Track Google referrals, AI-assistant sources and conversions over time; do not treat one traffic change as proof of a single cause.
- Keep editorial approval in place for automated content and review whether new pages are earning useful visits.
Should you block AI crawlers from a WordPress site?
There is no universal answer. Blocking may be appropriate if your priority is limiting the use of your content for AI training, if you publish licensed material with restrictions, or if you do not want automated systems accessing parts of the site. Allowing selected crawlers may be preferable if you want your pages to be discovered, summarized or cited in AI-assisted search.
The important distinction is that “AI crawler” can describe different activities. A crawler may collect material for training, retrieve pages for a search index, or fetch a page when an assistant is answering a user. One robots.txt policy may not express all of those preferences, and a provider’s interpretation can differ.
On November 1, 2026, Search Engine Journal reported that Google, Microsoft and OpenAI plan to honor a shared AI-training opt-out expressed through a robots.txt line. The report also says the companies are handling the arrangement differently, so this should be treated as a developing policy rather than a guarantee that one rule will produce identical behavior everywhere. Read the report on the shared AI training opt-out before changing production rules.
Choose a policy based on your goal
- Limit training use: Investigate the relevant provider documentation and add the applicable opt-out instruction where supported. Record the date and reason for the change.
- Preserve discovery: Avoid broad blocking if visibility in search and AI assistants matters. Keep important articles crawlable and make your authorship, topic coverage and structured data clear.
- Protect private areas: Use authentication and access controls for customer data, drafts and administration. Robots.txt is not a security boundary and should not be used to hide confidential URLs.
- Use a selective approach: Apply rules to specific user agents or paths only when you understand the consequence. Test the resulting robots.txt file and watch logs after deployment.
For WordPress owners, AI crawler rules should be part of a documented site policy rather than a copy-and-paste exercise. Keep a version-controlled copy of robots.txt, note which business objective each rule supports, and revisit the policy when a provider changes its crawler or AI-search behavior.
Some site owners may also use an AI visibility setup that combines AI-crawler rules with llms.txt, structured data and IndexNow. These tools can support discoverability, but they do not replace editorial quality, ordinary technical SEO or access controls.
Automate Your WordPress Content Today
PubSchedule writes AI articles for your WordPress site on a schedule, in up to 15 languages — and nothing goes live until you approve it. Free plan available, no credit card required.
What the DebugBear DNS attack means for WordPress security
On October 31, 2026, Search Engine Journal reported that hackers hijacked DebugBear’s DNS and served malicious JavaScript. The report said DebugBear told customers to remove its Core Web Vitals monitoring script and advised site owners to check exposed accounts and unauthorized changes. See the DebugBear DNS attack report for the incident details.
This is a practical warning for any WordPress site that loads code from another domain. A script can be supplied by a trusted vendor and still become a risk if the vendor’s DNS, hosting account, release process or credentials are compromised. Removing a script may affect reporting, but leaving a potentially compromised script in place can expose visitors and the site itself to greater harm.
WordPress website security checklist after a third-party script incident
- List every external dependency. Review the theme, plugins, tag manager, analytics tools, advertising tags, chat widgets, consent tools, monitoring scripts and custom code. Search templates and plugin settings as well as the page source.
- Remove affected or unnecessary scripts. If a vendor has instructed customers to remove a script, follow that instruction while you investigate. Do not reinstall it merely because performance monitoring is useful.
- Check administrator and vendor accounts. Review recent logins, password-reset events, API keys, DNS changes and new users. Revoke credentials that are exposed, unused or no longer necessary, then enable stronger authentication where available.
- Inspect for unauthorized changes. Compare theme and plugin files with known-good versions, review recently modified files and check for unfamiliar redirects, injected code, new posts or altered settings. Preserve evidence before cleaning a serious compromise.
- Update and reduce. Patch WordPress, themes and plugins, remove abandoned extensions and keep only the scripts that serve a clear purpose. A smaller dependency list is easier to audit.
- Monitor after remediation. Check browser-console errors, uptime, page behavior, security alerts and server or CDN logs. Look for new changes rather than assuming the first cleanup solved everything.
This security work is separate from AI-crawler policy. A robots.txt rule can express a crawling preference, but it cannot stop malicious JavaScript, protect an administrator account or secure a private file. Use authentication, permissions, updates and monitoring for those jobs.
How to measure Google AI Mode traffic and changing search referrals
On October 30, 2026, Search Engine Journal reported that Reddit’s CEO linked falling search referrals to Google AI Overviews and AI Mode, while Reddit tested a login-only experience. That is a report about Reddit’s situation, not proof that every WordPress publisher will see the same outcome. Read the report on Reddit and Google AI Mode referrals for the context.
The practical lesson is to measure your own site before changing access rules. A lower click-through rate from traditional search could reflect changing result layouts, seasonality, ranking changes, a technical issue, a change in demand or a mixture of factors. Google AI Mode traffic may also be difficult to identify consistently in analytics, so label conclusions as uncertain when the source data does not clearly identify it.
A simple measurement plan
- Record organic sessions, landing pages, impressions, clicks and conversions by week or month.
- Separate branded and non-branded queries where your reporting tools allow it.
- Compare pages that answer specific questions with pages intended to support a transaction, subscription or lead.
- Check indexing, crawl errors, redirects, canonical tags and page speed before attributing a traffic change to AI search.
- Track referrals from identifiable AI assistants separately, but do not assume that unlabelled or direct visits came from an assistant.
- Measure outcomes beyond visits: qualified leads, sales, email sign-ups, downloads and assisted conversions.
If you publish regularly, performance tracking can help connect each article with views and referral sources, including AI assistants where the source is identifiable. PubSchedule includes post performance tracking on paid plans, and its Pro and Agency plans include AI Visibility features such as llms.txt, AI-crawler rules, structured data and IndexNow. These features can support a documented publishing and visibility process, but they do not guarantee inclusion, citations or traffic from any search engine or assistant.
How to implement AI crawler rules in WordPress
Start with a written decision: which content should be available for ordinary search, which content should be excluded from AI training where supported, and which areas must be private. Then make the smallest rule change that matches that decision. Avoid blocking all bots simply because one provider’s policy is unclear; that can remove useful discovery along with unwanted access.
After publishing a change, verify that the live robots.txt file contains the intended directives and that a caching layer is not serving an old version. Review server logs and search performance over the following weeks. If your site uses an SEO plugin or a managed platform, check whether it generates or overrides robots.txt.
Automated publishing adds another reason to keep review gates. PubSchedule’s WordPress plugin connects a site and places generated articles in a WordPress review queue; articles are not published without approval. That workflow lets an editor check claims, links, originality, search intent and security implications before a scheduled article reaches readers.
Frequently asked questions
Does robots.txt stop AI companies from scraping my website?
Robots.txt communicates your requested crawling rules, and the November 1 report describes a planned shared AI-training opt-out for several providers. It is not a technical access control, so it cannot stop every automated request or protect private content.
Should I block AI crawlers if I want traffic from AI search?
Not necessarily. Blocking training access and allowing selected discovery or retrieval may support different goals, but provider behavior varies. Document the trade-off and measure identifiable referrals and conversions after any change.
What should I do if my WordPress site loaded the DebugBear script?
Follow the vendor’s reported guidance to remove the Core Web Vitals monitoring script while investigating. Then review administrator accounts, DNS and hosting changes, recently modified files, other external scripts and unusual site behavior.
Can AI visibility tools guarantee that my pages will be cited?
No. Rules, llms.txt, structured data and IndexNow can help communicate site information, but they cannot guarantee that ChatGPT, Perplexity, Claude, Google AI Overviews or another system will read, select or cite a page. Continue investing in accurate, useful content and technical SEO.