How can add lines to robots.txt file

Bobby_Lipton
New Member
1 0 0

For our Google adwords campaign, our Google rep told  us to add the lines below to our robots.txt file.  How can we do that?

User-agent: Googlebot
Disallow:

User-agent: AdsBot-Google
Disallow:

User-agent: Googlebot-Image
Disallow:

0 Likes
Jason
Shopify Expert
10360 158 2010

Hey Bobby,

The robots file is auto-generated and not something you're able to edit.

I jump on these forums to help and share some insights. Not looking to be hired, and not looking for work.

Don't hand out staff invites or give admin password to forum members unless absolutely needed. In most cases the help you need can be handled without that.


★ http://freakdesign.com.au ★
0 Likes
Wes_Grasty
Shopify Expert
35 0 4

What is the reasoning behind that?  With the disallow blank, it won't actually disallow anything. 

0 Likes
Trevor
Community Moderator
Community Moderator
2583 339 526

Hello!

As of today, June 21st, 2021, we have launched the ability to edit the robot.txt file to give merchants more control over the information that is crawled by search engines. You can learn more about how to edit your robot.txt file through our community post here

Due to the age of the topic, I will be locking this thread. If you have any questions about the new feature, please do not hesitate to create a new post under our "Techincal QA" board.

Trevor | Community Moderator @ Shopify 
 - Was my reply helpful? Click Like to let me know! 
 - Was your question answered? Mark it as an Accepted Solution
 - To learn more visit the Shopify Help Center or the Shopify Blog

0 Likes