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.
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?