2024年8月12日How To Block a Domain In Robots.txt To block a domain in robots.txt, you can prevent all search engines from crawling any part of your website using the "Disallow: / "command. This instructs ALL search engines not to index any pages on your site. ...