Skip to main content
Best answer

Can't connect zapier to Wordpress - error 406


Rodingios

Can anyone help with this error? Permission is allowed
Thank You in advance!

Best answer by SamBBest answer by SamB

Hi @Rodingios

I did some digging and it seems the reports of ModSecurity causing a similar 406 error was down to a ModSecurity module/setting being enabled on the web hosting server for the WordPress site. 

Can you take a look at the settings for your web hosting server (or reach out to your website administrator) to see if there’s a similar security setting enabled that might be blocking Zapier’s access here? 

If it is and it’s not going to be possible to disable that setting, you may need to add Zapier’s IP addresses (AWS us-east-1 IPs) to the allowlist in order for the server to allow the connection to be added. You can read more about how to use those IPs here: Can't access or use Zapier with other apps

Hope that helps. Please do keep us in the loop on how you get on here! 

View original
Did this topic help you find an answer to your question?

6 replies

ken.a
Forum|alt.badge.img+6
  • Zapier Staff
  • 6403 replies
  • July 31, 2023

Hi there @Rodingios,

Welcome to the Community! 🎉

It seems like the 406 error message you encountered on WordPress could be caused by a security plugin like ModSecurity. These plugins sometimes trigger such errors.

Would you mind trying to deactivate the security plugin on WordPress to see if that resolves the issue?

Please keep us posted! 😊


Rodingios
  • Author
  • Beginner
  • 3 replies
  • July 31, 2023

Strange because i don’t have any of this security plugin yet. 


Rodingios
  • Author
  • Beginner
  • 3 replies
  • July 31, 2023

I reseted webiste, have only Zapier plugin and still have the same problem. Any ideas?


SamB
Community Manager
Forum|alt.badge.img+11
  • Community Manager
  • 7517 replies
  • Answer
  • August 2, 2023

Hi @Rodingios

I did some digging and it seems the reports of ModSecurity causing a similar 406 error was down to a ModSecurity module/setting being enabled on the web hosting server for the WordPress site. 

Can you take a look at the settings for your web hosting server (or reach out to your website administrator) to see if there’s a similar security setting enabled that might be blocking Zapier’s access here? 

If it is and it’s not going to be possible to disable that setting, you may need to add Zapier’s IP addresses (AWS us-east-1 IPs) to the allowlist in order for the server to allow the connection to be added. You can read more about how to use those IPs here: Can't access or use Zapier with other apps

Hope that helps. Please do keep us in the loop on how you get on here! 


Rodingios
  • Author
  • Beginner
  • 3 replies
  • August 3, 2023

Thank you very much! Disabling mod security helped.😎

I'm just wondering what the secure page looks like now if it's disabled?


SamB
Community Manager
Forum|alt.badge.img+11
  • Community Manager
  • 7517 replies
  • October 13, 2023

I’m so sorry for missing your reply here previously, @Rodingios! Really glad to hear disabling ModSecurity helped. 🎉

With that feature turned off any security measures it was implementing on your website will not be running. So if you’d prefer to have those security measures running it may be better to try adding Zapier’s IP addresses to your allowlist so that it’s not blocked when ModSecurity is enabled again.

That said, there are a lot of IP addresses that would need to be added so it may be easier set it to allow this User-Agent: Zapier header. Zapier’s calls will always include that header so that may be a simpler option. 

Let us know if you have any further questions at all! 🙂