Yeh. Should not be too difficult if you have some software running on your server. Any standard Server-Side language can handle this.
There are a few ways it could be done. For example, you could have some datastore that marks certain pages as "locked" when they are first viewed.
Do you have any Server-Side programming experience? PHP, ASP, CGI, etc?