File used to direct or to tell web bots what pages and directories to index or not index. This file must be placed in the root directory on the server hosting your pages. The file should be named robots.txt and should have read permissions. Below is an example of a robots.txt file.
#robots.txt file for https://www.computerhope.com
In the above robots.txt example, the first line is a nonexecutable statement that describes the file. Next, the User-agent line tells what robots or bots should follow this section of the file. In the above example, the * represents all bots. Finally, the next two lines are the two directories that you want the bots not to index.
If you want to allow a bot to query all URLs in your website, enter the name of the bot followed by disallow: with a blank value, as seen in the example below.