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