Is it safe to block URLs with a '?' using robot.txt?

Is it safe to block URLs with a '?' using robot.txt?

Goodstart900
Shopify Partner
10 0 0

Dear Shopify users,

 

I want to save crawl budget in google search console.

So i want to block this as example url in the robot.txt file:

 

/products/vriendenboek-eenhoorns-ik-hou-van-eenhoorns-vriendenboekje?_pos=1&_psq=vriendenboek%20eenhoorns&_ss=e&_v=1.0

 

This is the right url: 

/products/vriendenboek-eenhoorns-ik-hou-van-eenhoorns-vriendenboekje

 

User-agent: *
Disallow: /products/?

 

So i wonder is this the right code to block this url with robot txt? 

All urls have a ? in the url name.  Is it save to block this url? 

 

Thank you.

 

 

 

Replies 0 (0)