If you run a web site one of the things you should have in mind is security. Your site security/insecurity is due in part by text boxes. If you allow to your website users to send information you have to use form and consequentially text boxes.
I will start this tutorial by telling you that it's wrong to restrict access to your visitors. Why would you want to do that?
Maybe you want to restrict spam bots - you should use captcha in this case.
Maybe you want to restrict certain users from accessing your web site...I recommend you to alter your database and just add a simple field to store the status in (1=active, 0=inactive).
Anyone who operates their own website knows that you need to provide forms in your site for visitors to contact you. The big challenge is providing easy form access to your visitors, without letting SPAM flood your email inbox or database. The techniques described in this article tell you how to reduce the amount of SPAM.
Joining mailing list will entitle you
to receive occasional emails informing you of news and
updates to the site and any special offers that may be
of interest to you.