Gratis å bruke, uten konto

Robots.txt-tester

Lim inn robots.txt-tekst, oppgi et produkttoken for søkeroboten og test opptil 100 nettadresser. Resultatene beregnes på denne enheten; ingenting hentes eller lastes opp.

Lim inn regler her. Maksimum 200 KB, 5,000 linjer og 2,000 Allow/Disallow-regler.

Eksempel: Googlebot. Oppgi bare tokenet, ikke hele nettleserens User-Agent-streng.

Oppgi én full HTTP- eller HTTPS-URL per linje, opptil 100. Verktøyet åpner dem ikke.

Dette er en lokal forhåndsvisning av vanlige Allow/Disallow-regler, ikke en fullstendig emulator for alle crawlere. Ustøttede direktiver rapporteres som ignorert. robots.txt er ikke tilgangskontroll og garanterer ikke crawling, indeksering eller rangering.

Hvordan tester jeg en robots.txt-regel?

Lim inn filinnholdet, oppgi et crawler-token som Googlebot, legg til én full URL per linje og velg «Test regler». Forhåndsvisningen viser valgt gruppe og eventuell regel som samsvarer.

Veiledning

Slik bruker du Robots.txt-tester

The Robots.txt Tester lets you paste the text of a robots.txt file, name a crawler and list up to 100 web addresses. It then shows, for each address, whether the Allow and Disallow rules for that crawler would let it crawl the page, and which rule decided it. Nothing is fetched. It is a local preview of common rules, not a copy of any search engine, and robots.txt is not a way to protect private pages.

Slik gjør du

  1. Paste the full text of your robots.txt file into the first box. The limits are 200 KB, 5,000 lines and 2,000 Allow or Disallow rules.
  2. Enter the crawler's product token, such as Googlebot, in the second box. Use the token only, not a full browser User-Agent string.
  3. Type the full http or https addresses you want to test, one per line, up to 100. They are never opened.
  4. Press Test rules. Each address shows as allowed or blocked, with the matching rule. Load example fills in sample text, and Clear empties the form.

Eksempler

A blocked folder with one allowed sub-folder

Du skriver inn
Robots.txt
User-agent: * Disallow: /private/ Allow: /private/press/
Crawler
anybot
URL-er
https://example.com/private/report.pdf; https://example.com/private/press/kit.html; https://example.com/blog/
Du får
report.pdf
blocked by Disallow: /private/
kit.html
allowed by Allow: /private/press/
Blogg
allowed, no rule matches

Both rules match the press page, and the Allow rule has the longer path, so it wins. The blog address matches nothing, and an address with no matching rule is allowed.

Kjørt med verktøyets egen kode.

A crawler with its own group

Du skriver inn
Robots.txt
User-agent: * Disallow: / User-agent: Googlebot Allow: / Disallow: /tmp/
Crawlere
Googlebot; Bingbot
URL-er
https://example.com/a; https://example.com/tmp/x
Du får
Googlebot
/a: allowed; /tmp/x: blocked
Bingbot
/a: blocked by Disallow: /

Googlebot has its own group, so the star group is ignored for it. Bingbot has no group of its own, so it falls back to the star group, which blocks everything.

Kjørt med verktøyets egen kode.

A wildcard with an end anchor

Du skriver inn
Robots.txt
User-agent: * Disallow: /*.pdf$
Crawler
Googlebot
URL-er
https://example.com/a.pdf; https://example.com/a.pdf?x=1; https://example.com/files/b.PDF
Du får
a.pdf
blocked
a.pdf?x=1
allowed
b.PDF
allowed

The dollar sign means the address must end there, so adding a query string escapes the rule. Path matching is case sensitive, so the capital letters in b.PDF also escape it.

Kjørt med verktøyets egen kode.

Allow and Disallow of equal length

Du skriver inn
Robots.txt
User-agent: * Disallow: /shop Allow: /shop
Crawler
anybot
URL-er
https://example.com/shop
Du får
Butikk
allowed by Allow: /shop
Matchende regler
2

When two matching rules are equally specific, the tool lets the Allow rule win. RFC 9309 says an allow rule should be used when allow and disallow rules are equivalent.

Kjørt med verktøyets egen kode.

Når det er nyttig

  • Check a new rule before you upload robots.txt, so you do not block pages by mistake.
  • Find out which rule is responsible when a page is reported as blocked.
  • Compare how a site's wildcard group and a named crawler's group treat the same address.
  • Teach or learn how Allow, Disallow, wildcards and groups interact.

Begrensninger

  • Robots.txt is a request to crawlers and not a lock. It is not a form of access control, so never rely on it to hide private pages.
  • It previews common Allow and Disallow behaviour for one crawler token. Crawlers differ, and the tool does not contact any search engine or website.
  • To rank conflicting rules the tool compares path length after removing the star and a final dollar sign. A crawler that counts those characters could choose another winner in rare mixes of wildcards.
  • Other directives such as Crawl-delay and Sitemap are reported as ignored, and lines it cannot read are counted as malformed. An allowed result does not mean a page will be crawled, indexed or ranked.

Tips

  • Test the exact crawler tokens you care about, and test one address that should be blocked and one that should be allowed.
  • Use full addresses including the query string if your rules use a question mark or an ending dollar sign.
  • Read the matched rule line, not only the verdict, to confirm that the rule you meant is the one that won.

Kilder

Vanlige spørsmål

How do I test a robots.txt rule?

Paste the file contents, type a crawler token such as Googlebot, add one full address per line and choose Test rules. The result lists each address as allowed or blocked, names the group used and shows the rule that matched.

Does robots.txt keep a page private?

No. RFC 9309 states that these rules are not a form of access authorization, and that the protocol is not a substitute for real content security. A listed path is even visible to anyone who reads the file. Use a login or server access controls for private pages.

What if two rules match the same address?

The most specific one is used, meaning the longer path. RFC 9309 describes this as the match with the most octets, and Google describes the length of the rule path. If an allow and a disallow rule are equally specific, the allow rule is used.

How does the tool choose which group of rules to read?

It looks for the group whose crawler name matches the start of the token you typed, and picks the longest such name. Without one, it uses the group for the star. Matching of the crawler name ignores letter case, but matching of paths does not.

Does allowed mean the page will appear in search?

No. Allowed only means the rules do not block crawling. Whether a search engine crawls, indexes or ranks the page is its own decision. Google also says robots.txt is not a way to keep a page out of its results; use noindex or a password for that.

Why does a rule with a question mark or dollar sign not match?

The tool matches the path plus the query string, so a rule that ends with a dollar sign stops matching once a query is added. Rules without the dollar sign match any address that starts with the same text.

Does the tool download my robots.txt or visit my pages?

No. It reads only the text you paste and the addresses you type, and it opens nothing. To test your live file, open it in a browser tab yourself, copy the text and paste it into the first box.

Hvordan tester jeg en robots.txt-regel?

Lim inn filinnholdet, oppgi et crawler-token som Googlebot, legg til én full URL per linje og velg «Test regler». Forhåndsvisningen viser valgt gruppe og eventuell regel som samsvarer.

Henter denne testeren nettstedet mitt eller laster opp nettadressene?

Nei. Den leser bare teksten og nettadressene du skriver inn i denne nettleseren. Den henter ikke robots.txt, besøker ikke nettadresser og laster ikke opp dataene dine.

Hindrer robots.txt personer fra å åpne en side?

Nei. Den gir instrukser til crawlere; den beskytter ikke private data. Bruk autentisering eller tilgangskontroll på serveren for private sider.

Må en tillatt URL vises i søkeresultatene?

Nei. Tillatelse til crawling garanterer ikke at en søkemotor crawler, indekserer eller rangerer en URL.

Kontrollerer verktøyet Google, Bing eller en annen crawler direkte?

Nei. Det forhåndsviser vanlige regler for crawler-tokenet du oppgir. Det kontakter ikke søkemotorer eller nettsteder.