How to Submit Robot.txt File In Webmaster..?

1. First, you need to create the robots.txt file.

For Example :
User-agent: * [User-agent name or search engine bots name]
Disallow: / [URL string not to be crawled]

2. You must save your robots.txt file as a text file.

3. Your robots.txt file must be named robots.txt.

4. You must place your robots.txt file in the root of your domain.

For Example :
Your domain URL is - "https://www.example.com".
Place in the root of your domain - "https://www.example.com/robots.txt"
But Not to place - "https://www.example.com/not-root/robots.txt"
 
Open the tester tool for your site, and scroll through the robots.txt code to locate the highlighted syntax warnings and logic errors. The number of syntax warnings and logic errors is shown immediately below the editor.
Type in the URL of a page on your site in the text box at the bottom of the page.
Select the user-agent you want to simulate in the dropdown list to the right of the text box.
Click the TEST button to test access.
Check to see if TEST button now reads ACCEPTED or BLOCKED to find out if the URL you entered is blocked from Google web crawlers.
Edit the file on the page and retest as necessary. Note that changes made in the page are not saved to your site! See the next step.
Copy your changes to your robots.txt file on your site. This tool does not make changes to the actual file on your site, it only tests against the copy hosted in the tool.
 
Step 1: Log in to Search Console and select Crawl, then click robots.txt on the left navigation

Step 2: You are now looking at your robots.txt file and can make any edits within the tester

Step 3: Once you’ve completed your edits and your robots.txt looks the way you want it, click Submit

Step 4: Download the code and upload the updated robots.txt to your site’s root domain

Step 5: After you’ve uploaded the new version to your website, return to Google Search Console and click View uploaded to verify that the correct version is live

Step 6: Click Submit to let Google know your robots.txt has been updated
 
Back
Top