Using the asterisk wildcard with the robots.txt file

Prevent access to all robots, except for the ones that you specifically allow.

The asterisk (*) wildcard can be used to prevent access for all robots, except the ones that you specifically list. The star should be placed just after the User-agent: part in your robots.txt file.

The below robots.txt example shows how to block or disallow access for all robots, and only allow Google, Bing, and Yahoo.

User-agent: msnbot # Bing
Allow: /
User-agent: Slurp # Yahoo
Allow: /
User-agent: Google
Allow: /

# All other robots
User-agent: *
Disallow: /

Post comment

Links that you insert are not nofollowed, but will be removed by admins if they are considered spam.

[url=Absolute URL for page]TITLE[/url]

You should insert code boxes around code examples, which will be automatically syntax highlighted.

[code1 html|css|javascript|php|sql]Your Code Here[/code1]

You may want to read our Privacy Policy before submitting your comment.