Looking for way to limit entries in guestbook

He has: 2 posts

Joined: Mar 2005

Is there a way to keep idiots from putting meta refresh tags and iframes in my guestbook?

Busy's picture

He has: 6,151 posts

Joined: May 2001

you can use some javascript to force the page into it's own window (stops it being displayed in frames etc) but if javascript is disabled it wont work.

meta refresh tags, only real way is to use cookies or sessions and disallow the post if posted in last XX minutes, but you will have to check data in database and compare to cookie/session or it will just reload the data

CptAwesome's picture

He has: 370 posts

Joined: Dec 2004

No, what he is trying to stop is people commenting with "

They have: 5,633 posts

Joined: Jan 1970

If its ASP just use Server.HtmlEncode(var) on their entry before it goes to the database. You will see the information in text form it whont be inturprated as HTML

Want to join the discussion? Create an account or log in if you already have one. Joining is fast, free and painless! We’ll even whisk you back here when you’ve finished.