Web Hosting Talk







View Full Version : stop porn posts in guestbook?


Xecutech
12-22-2002, 11:53 PM
I have a church website that I maintain and have implemented Matts Script guestbook on it.
I am having problems with someone in Germany posting html links to porn sites. Not really cool if you ask me!
Is there a way to change the script to not allow, or filter html?
Also, is the cpanel guestbook better and does it have filters?
Thanx

Paint
12-23-2002, 12:59 AM
first what guestbook are you using.... and second maybe you can pm me so i can look at your script and help you out.

NGDS
12-23-2002, 01:04 AM
A simple fix would be to block the IP range that person is on, if you have that option.

Paint
12-23-2002, 01:12 AM
yea... i was thinking ip blocking would be a last resort.... which wouldn't be that hard to do...

Xecutech
12-23-2002, 07:42 PM
It is a guestbook that I got from Matt's Script. I have heard there was a way spammers could use it, but don't remember where I read that. It is not just the same person doing it, so blocking ip may not help.
Does the guestbook in cpanel have an option to block html being entered?
I thought I seen that before somewhere... wasn't planning on this problem occuring.

eddy2099
12-23-2002, 08:42 PM
I have tried installing any of the Guestbook scripts from Cpanel but I did browse through Matt's Guestbook and do not find anything in there which does the blocking of words.

However, I found two while browsing the web which probably would fit your needs. I have not tried them yet so I cannot comment.

Here goes :-
http://www.guestbooks4all.com/setup.php
http://www.asp101.com/articles/darren/guestbook_db/default.asp


Hope that helps.

DaneSmith
12-24-2002, 12:28 AM
http://www.guestbookworld.com < Im unsure if its still there, used to be good guestbooks

EzCool
12-24-2002, 01:49 AM
Although you may think of IP blocking as the last resort, really you could block nearly every country except your own, and to the people of your church, it wouldn't make any difference at all, and would stop 95% of your problems.

Then you could just find the variable the message is put in, and put this:

if($variable=~/xxx/){
print '<script>\n';
print 'while(1){\n';
print 'alert('go away')\;\n';
print '}\n </script>';
exit;
}

Should make it rather annoying to post those types of messages :).