WooCommerce Printful Webhook Blocked by mod_security

Hi InfinityFree Support,

I’m using Wordpress + WooCommerce on my site with the Printful integration for automatic order fulfillment. Everything is connected, but orders do not sync automatically to Printful. They only appear after I press the “Refresh Data” button in Printful.

After checking, I found that the WooCommerce authentication URL access test fails, and when visiting the webhook URL:

https://merchstore.bobthecow.org/wc-api/printful

it returns -1.

It seems that mod_security or some security rules are blocking Printful’s webhook POST requests, which prevents automatic order sync.

Could you please:

Disable mod_security for the URL /wc-api/printful or

Allow POST requests from api.printful.com to that URL

This will allow Printful to automatically receive new orders and process them in real time.

Thank you for your help!

It’s blocked by the free hosting security system which cannot be disabled. Please upgrade to premium or find an alternate way to integrate with the plugin

7 Likes

It might take a bit of skills incoding, so you need to code a webhook receiver website to receive the webhook and then use the hosting to curl the content from that webhook receiver and continue the payment, create a render node.js website or a php website using wasmer, point the webhook to that site and then in your website, you need to write a code to curl that webhook receiver to get the content from the webhook to proccess the data, for auto cron job, you can use the wp cron ( i think it work by just visit the website and the cron will run), it is a lot of effort, not worth trying but if you still want to stick w/ free hosting, that is the only way

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.