The disadvantage is that these tools are not freely customizable to some extent. Where to place the robots. Txt file? Place the robots. Txt file in the root directory folder of the corresponding domain name/subdomain name. For example. If.Com/robots.Txt . If you want to control the access restrictions of the second-level domain name. Such as blog. Domain.Com . Then its robots.Txt nees to be accesse through blog.Domain.Com/robots.Txt . Best practices for robots.Txt keep the following tips in mind to avoid unnecessary mistakes: each new instruction requires a new line each command requires a new line.
Otherwise. Search engines will misunderstand: error France WhatsApp Number Data example: user-agent: * disallow: /directory/ disallow: /another-directory/ standard example: user-agent: * disallow: /directory/ disallow: /another-directory/ use wildcards to simplify directives not only can you use the wildcard character (*) to apply the directive to all user agents. But you can also use it to match identical urls when declaring the directive. For example. If you wante to prevent search engines from accessing parameterize product category urls on your site. You could list them like this: user-agent: * disallow: /products/t-shirts? Disallow: /products/hoodies? Disallow: /products/jackets? … but this is not concise. You can use wildcards. Abbreviate as follows: user-agent: * disallow: /products/*? This example blocks all search engine users from crawling all links containing question marks (?) in the /product/ directory.
In other words. All product links with parameters are blocke. Use the dollar sign ($) to annotate urls ending with specific characters add $ at the end of the command. For example. If you want to block all links ending in .Pdf. You can set your robots. Txt like this: user-agent: * disallow: /*. Pdf$ in this example. Search engines cannot crawl any links ending with .Pdf. Which means search engines cannot crawl /file. Pdf. But search engines can crawl this /file.Pdf?Id=68937586 because it does not end with . Pdf end. The same user agent is declare only once if you declare the same user agent multiple times. |