Q:

CakePHP: Single Post Per Day based on IP Address

I'm still getting the hang of CakePHP but I think I'm making progress.  
Background: I'm developing an application that doesn't require registration.  I essentially have posts that can be made by any visitor to the site. 
Question: How can I limit the number of times a guest can post per day?  Say I want to allow a guest to post once per day.  Would I essentially create a users table based on IP, log a new IP address every time one visits the site, then limit actions based on that table?  

A:

What I would do is create a .txt file that stores the IP of a user, with PHP's $_SERVER['REMOTE_ADDR'].  After 24 hours, at 12:00, have your webserver wipe the IP file, enabling everybody to post again for the next day.