Allow our PHP script to download Shopify pages?

Hi guys,

We have a website that we maintain built in Shopify and it is doing well.
However, we bump into issues while we try to create some internal tools to automate management and monitoring of the site.

What we would have wanted is download the pages via PHP script (via file_get_contents or cURL) but it looks like Shopify is blocking these kinds of commands/access to the site.
Will you be able to confirm that?

If so, is there a way to allow our servers or IP address to do the above commands and allow our PHP script?

I hope this is something that we can do as it will truly be a big help for us to effectively manage our Shopify clients.

Thanks in advance and looking forward to hearing from you.

What does the monitoring do?
What error do you get?

Your tool/ip won’t be whitelisted for a shop(s) so your approach will likely need adjustment.

This will just be a script that needs to get the contents (HTML) of the page from the Shopify sites that we manage and and we monitor some contents of it.

When we do PHP’s file_get_contents, it doesn’t return anything as in a totaly empty string.

When use PHP’s cURL, it says “You do not have permission to access this website”.

So we are pretty sure Shopify is blocking our script. Any alternatives or workarounds?

To add more details to this, below is the exact message whenever we try to read a Shopify page via cURL:

“You do not have permission to access this website”.

So hopefully there’s a way for our servers to get whitelisted by Shopify for websites that we manage anyway.

Any other suggestions will be greatly appreciated.