/products.json File

Short description of issue

All products are available, despite password/log-in protection

Link to Shopify Store

https://avenue-clothing-theme.myshopify.com/products.json

Reproduction steps

N/A

Additional info

Does anyone have any experience blocking the /products.json file from either direct access or providing all product information on a non-Plus site? This is not meant to simply block bots, rather anyone from accessing directly.

This file is available, even if a store is password protected. Seems even the ‘lock’ apps are not able to protect this data.

There should be a simple, default way to protect this data.

What type of topic is this

Bug report
Feature request

use cloudflare to block the /products.json endpoint on the main domain. the problem, though, is that you can’t do the same on the myshopify domain.

Hey Ian! A private shop should return a 401 for all JSON endpoints so long as you’re using the password protection through Online Store → Preferences. I just confirmed this on a personal store. If you’re experiencing this let me know. I checked https://avenue-clothing-theme.myshopify.com/ and it’s not currently password protected.

Thanks for looking @Gray-Shopify . I also continued to test, and realized I was able to access password protected files on the browser I was using because I was logged into my Partner account.

That said, that is only half the issue. Has Shopify ever considered the ability to block /products.json even if a store is publicly available? Many times users do not want this info crawled, and may be hiding product data to those not logged in

I’m not aware of any immediate plans to support hiding these endpoints but I’ll see if we can forward that request along.