I am attempting to find code/script that is hopefully out there for blocking IP addresses after the third submission of a form in a 24 hr. period.

I'm not so familiar with coding - use dreamweaver mainly, but have been asked to do an IP block, and this is not my strong suit.

Whether it's an effective means for keeping out the wrong people, it's the solution they are intent on using, so I'm hoping that there is code already out there that I can use. I've seen a lot of code out there for blocking specific IP addresses, but I need code that will block an IP address based on the amount of times they submit information in a form within a specific time period (3x/day).

Thanks in advance for any help or for pointing me in the right direction!