I am getting the following error message, when sending a Webhook to my site, reading the plugin documentation, Webhooks not being received by WP Fusion | WP Fusion fusion/#cloudflare tells me about creating an exception in the firewall for incoming traffic from the IP address of your CRM, how is this done?
To address the issue with unexpected HTTP response codes (301 and 302) when sending a Webhook to your site and creating an exception in the firewall for incoming traffic from the IP address of your CRM, follow these steps:
Step 1: Identify IP Address of Your CRM
First, you need the IP address(es) of your CRM. Consult your CRM’s documentation or support team to obtain this information.
Step 2: Create Firewall Exception in Cloudflare
Log in to Cloudflare: Go to Cloudflare and log in to your account.
Select Your Domain: Choose the domain associated with your website (e.g., trucosfiscales.com).
Firewall Rules:
Go to Firewall > Firewall Rules.
Click Create a Firewall Rule.
Configure the Rule:
Name: Give your rule a descriptive name (e.g., “Allow CRM IP”).
Field: Select IP Source Address.
Operator: Select equals.
Value: Enter the IP address of your CRM.
Action: Select Allow.
Deploy the Rule: Save and deploy the firewall rule.
Step 3: Verify Webhook Configuration
Check Webhook URL: Ensure the webhook URL you are using is correct and matches your site’s endpoint.
Avoid Redirections: Make sure your site’s URL does not trigger redirections (HTTP 301/302). Verify this by directly accessing the webhook endpoint in a browser or using a tool like curl.
Additional Tips
Clear Cache: Clear your website’s cache if any redirection rules are cached.
Plugin Configuration: Verify the WP Fusion plugin settings and ensure it’s configured correctly to handle incoming webhooks.
By creating an exception in Cloudflare’s firewall for your CRM’s IP address, you should resolve the issue with receiving webhooks. If the problem persists, check your site’s redirection settings or contact WP Fusion support for further assistance.
@moises2, looking at the WP Fusion’s documentation, you want to allow all requests to URLs that include wpf_action, and not their source IPs. You can do this using a skip action in your Custom Rules.
After you’ve deployed a rule that targets http.request.uri.path contains "wpf_action", feel free to use Trace to double check that the rule is applied correctly on a given URL.