it is very annoy that some people always post some adult or other unfavorable contents in my website. The question is caused part by using the free website codes. other people can also download this free codes as you can . this make the website easier be hackered also.
I uses the following ways to avoid the spams.
1. chang the name of the database as sugestted by others.
2. make other files read only, don't change the attribute of them to write, when i build my first website, because i am not familiar with the setting, i changed all the attibute of files to write and read. then some guys hackered my website.
3. change the name of the registration/signup page. some people use softwares to automatically signup and post advertisement. by change the name of the registration page, they can not find the register page. if they find again, you can change again.
4. add more input item in the sign up page. such as the city of the new register. this way is very effective to cope the automatically sign up software.
5. ban the ip from known spam.
6. setting up filter words. especially setting up the setting like this. when they submit a adult web address, the web address is autmatically changed to other web address. I like this very much. haha..