X-Robots-Tag Checker
Inspect the HTTP headers of any URL (HTML pages, PDFs, images) to check for X-Robots-Tag indexing directives.
Try URLs for HTML pages, PDFs, images, or API endpoints.
Fetching HTTP headers... please wait.
Header evaluation complete.
What is the X-Robots-Tag?
The `X-Robots-Tag` is an HTTP header sent by your web server that functions similarly to the HTML `<meta name="robots">` tag. However, while meta tags only work on HTML documents, the `X-Robots-Tag` can be applied to any file type.
This makes it the only effective way to prevent search engines from indexing non-HTML files such as PDFs, images (JPG, PNG), videos, or plain text documents.
Protecting Non-HTML Files
If you have an internal PDF document or a private image, putting a rule in `robots.txt` might stop crawling, but Google can still index the URL if someone links to it. Only an `X-Robots-Tag: noindex` will force Google to remove the PDF from search results.
Server-Level Control
By configuring your Apache or Nginx server, you can apply an `X-Robots-Tag` conditionally across an entire directory (e.g., forcing `noindex` on all `.doc` files or a specific staging environment) without modifying the application code.
Frequently Asked Questions
<FilesMatch "\.pdf$">
Header set X-Robots-Tag "noindex, nofollow"
</FilesMatch>
location ~* \.pdf$ {
add_header X-Robots-Tag "noindex, nofollow";
}
Check Out Other Popular Tools
QR Code Generator
Generate QR codes instantly. Create QR codes for URLs, text, emails, phone numbers, and more. Free and customizable.
PDF to JPG
Convert PDF pages to JPG images instantly. No software installation required. Free, secure, and client-side processing.
Stoper Online — Włącz Stoper Internetowy co do Milisekundy (ZegarOnline)
Online stoper co do milisekundy liczy czas od kliknięcia przycisku Start. Umożliwia dodawanie międzyczasów (rundy), automatyczny zapis po zamknięciu, dni, pełny ekran i skróty klawiszowe.
Was this tool helpful?
Comments
Loading comments...