Block foreign IP addressed from submitting forms?

2020-05-27 javascript php wordpress forms ip-address

Recently I have been getting bombarded with form submissions from IP addresses outside of our scope of business. Is there a way to disable a form submit button based on a users location via IP?

We're currently using Wordpress utilizing Ninja forms, however I'm stuck on coming up with a solution to achieve this and am looking for any suggestions I can get.


Maybe try to use something like Google reCaptcha?