A robots.txt generator on Mac creates a downloadable, standards-aligned robots.txt file in your browser for review before you publish it at /robots.txt on the exact site origin it governs.

The Robots.txt Generator supports this workflow without a macOS installation: it creates the text entirely in the browser without sending configuration data to a server. You can use a standard Mac browser, then publish the reviewed file through your normal hosting setup. The essential placement rule is that /robots.txt must govern the same scheme, host, and port you entered.

robots.txt generator on mac
robots.txt Generator on Mac: Local File Workflow

What the Mac browser workflow creates

The generator runs locally in the current browser tab. All entered paths and generated text remain in that tab, so you can create the file without uploading site details or account information to a remote configuration service.

Enter a complete HTTP or HTTPS URL for the website origin. The generator reduces a URL containing a page path, query string, or fragment to its origin when creating the default sitemap address. An explicit port is preserved. The result is plain UTF-8 text containing one general User-agent: * group followed by the selected Allow or Disallow rules.

Every generated file also receives a Sitemap: line based on the normalized origin and /sitemap.xml. This is intentionally a focused, general-purpose file rather than a collection of private directives for individual search engines. If the production file contains intentional crawler-specific groups, compare and preserve them during review.

Create and publish robots.txt on Mac

  1. Open the generator in your Mac browser and enter the complete HTTP or HTTPS URL for the site origin. Include the port if the site uses a non-default one. If you paste a page URL, its path, query, and fragment will not become part of the generated sitemap address.
  2. Choose the overall crawler policy: allow compliant crawlers to access everything, disallow selected paths, or disallow the entire site. For selective mode, enter one disallowed path pattern per line. Each non-empty rule must begin with a slash.
  3. Check the selective list against the intended structure. The tool accepts 1–50 unique paths, removes exact duplicates in first-seen order, preserves wildcard asterisks and trailing dollar signs, and rejects control characters and hash signs. Review capitalization, prefixes, wildcards, and anchors before generating the file.
  4. Generate the text and inspect the complete result. Check the single wildcard group, each Allow or Disallow rule, and the sitemap line. Download the plain UTF-8 file and open the downloaded text if you want a second review pass in a plain-text editor.
  5. Obtain the current production robots.txt manually and compare it with the new file. The generator does not fetch the live file, so this comparison is your responsibility. Keep a copy of the old file for rollback and retain any intentional crawler-specific groups.
  6. Edit the sitemap line if your sitemap lives somewhere other than the generated /sitemap.xml location. Then publish the reviewed file with the lowercase name robots.txt at the top level of the exact scheme, host, and port it governs, and serve it as text/plain. A copy in a subdirectory, on another host, or under another protocol will not govern the intended origin.
  7. Verify the deployment with your hosting or server tools. Test important public and blocked URLs with the relevant search-engine tester where available. The generator does not validate server responses, submit the file to a search engine, or confirm that a crawler has refreshed its cached copy.

Choose a policy that matches the crawl goal

Choose the mode according to the crawler request you want to make, not according to what you expect the file to prevent. Each mode produces a different set of rules, while the sitemap line is appended in every case.

Policy Generated rules Practical use Important limitation
Allow all User-agent: * and Allow: / Requests that compliant crawlers may crawl the site's URL paths. Does not make public pages private or grant access to protected content.
Selective disallow User-agent: * and one Disallow rule for each selected path pattern Requests that compliant crawlers avoid particular areas while crawling other paths. Path case, prefixes, wildcards, and end anchors affect matching.
Block all User-agent: * and Disallow: / Requests that compliant crawlers avoid the entire origin. Does not guarantee removal from search results or stop a client from ignoring the file.

Selective mode is usually the most useful starting point when there are known directories that should not be crawled. Block all is a site-wide crawler request, not a security boundary. None of these modes hides the listed paths from people who can already access the site.

Check path matching before publishing

RFC 9309 defines rule matching from the start of the URL path, case-sensitive comparison, and the use of the most specific matching rule. This means path spelling matters: /Private and /private can express different intentions. A rule for /draft also does not necessarily express the same intent as /draft$, because the trailing dollar sign anchors the pattern at the end.

The generator preserves RFC-defined wildcard asterisks and trailing dollar signs so you can express those matching choices deliberately. It also keeps the first occurrence of an exact duplicate, making the selective list easier to inspect. For a compact reference while reviewing the result, see Generate a robots.txt File: Output Rules and Path Matching.

If the existing production file contains more specific Allow or Disallow rules, do not merge directives without understanding their effects. Rule specificity and each crawler's handling can determine which instruction applies. The generator focuses on one wildcard group and does not attempt to recreate every search engine's private extensions.

Place the file at the correct origin

Robots.txt is scoped by origin, which combines the scheme, host, and port. The location of the uploaded file therefore matters as much as the rules inside it.

File location Scope
https://example.com/robots.txt Correct location for the https://example.com origin.
https://example.com/guides/robots.txt Does not provide origin-wide robots.txt rules.
https://docs.example.com/robots.txt Does not govern the separate example.com host.
http://example.com/robots.txt Does not govern the separate https://example.com origin.

If the generator receives an explicit port, the sitemap address retains it, and the published robots.txt must govern that same scheme, host, and port. The generated sitemap address follows the form of the normalized origin plus /sitemap.xml. If the real sitemap has a different location, update that line before publication rather than assuming the default path exists.

Separate crawl control from access and indexing

Robots.txt is not authentication, authorization, encryption, or a privacy control. Every listed path is publicly visible in the file, and a malicious client can ignore the request. Never list a sensitive route as a substitute for login checks or server-side authorization.

Blocking crawling also does not guarantee that a URL will disappear from search results. Crawling and indexing are separate processes. A search engine may discover a URL through links and retain limited information without fetching the blocked page. Google's robots.txt documentation likewise distinguishes crawl directives from indexing controls.

Use page-level indexing controls, HTTP headers, search-engine removal workflows, or authentication according to the result you actually need. The generator does not add Crawl-delay because that directive is outside RFC 9309 and is not supported consistently across crawlers. It also does not submit the finished file or confirm crawler behavior after deployment.

Verify the Mac deployment

Use this final review after downloading and before replacing production:

  • Confirm that the filename is lowercase robots.txt and that it sits at the top level of the intended origin.
  • Check that the response is served as text/plain and that the displayed content matches the reviewed file.
  • Verify the sitemap address and every path's capitalization, prefix, wildcard, and dollar sign.
  • Compare the new content with the saved production file and retain intentional crawler-specific groups.
  • Test important allowed and blocked URLs with the relevant search-engine tester where available.
  • Use separate server and search-engine tools to confirm response delivery and refresh status; the generator cannot perform either check.

For a deeper look, see What Is ads.txt? Format, Fields, and Publishing.