...

View Full Version : PHP Virus problem



yasirjamal
03-10-2009, 10:30 AM
I have a problem in my web site i have add leave comments option.
But someone is puting virus links on it how to stop people to putting virus links. You can check it via this link:http://www.saughat.com/saughat/Saughat-Jan-Feb-09/comments.php

Fou-Lu
03-10-2009, 11:19 AM
I have a problem in my web site i have add leave comments option.
But someone is puting virus links on it how to stop people to putting virus links. You can check it via this link:http://www.saughat.com/saughat/Saughat-Jan-Feb-09/comments.php

1. Remove the post a comment feature.
2. Strip url tags out / use selective url filtering.
3. Moderate the incoming comments.
4. Use a user management system disallowing anonymous feedback.

I didn't visit you're site though. Just some of the standard things you should consider.

kokjj87
03-10-2009, 05:22 PM
The easiest way is to strip out the html tag in your comment, you don't need them anyway..

//this will strip all tags, but allowing, B and STRONG tag...
$comment = strip_tags($comment, '<b><strong>');

http://php.net/strip_tags

Or if you insist on allowing links on your comment.. follow Fou-Lu suggestion(moderate comment etc....)...

mathew edison
03-11-2009, 10:50 AM
Captcha?!



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum