| Re: Anti-Spam Operation |
| by kyraha on 2006/9/15 22:30:19 Finally I got it. I have implemented my idea that I explained above. If anyone is interested in my aproach here is the hack (pretty rough though, but well... let's clean it up together). In the file 'include/comment_post.php' at the line about 240 make the code to look close to this: le="color: #000000"><?php if (!empty($com_id)) { // [ skipped ] } else { // [ skipped ] if (is_object($xoopsUser)) { // [ skipped ] } else { $dohtml = 0; $uid = 0; if ($xoopsModuleConfig['com_anonpost'] != 1) { redirect_header($redirect_page.'='.$com_itemid.'&com_id='.$com_id.'&com_mode='.$com_mode.'&com_order='.$com_order, 1, _NOPERM); exit(); } $myts =& MyTextSanitizer::getInstance(); if (eregi('<A ',$myts->sanitizeForPreview($com_text,1))) { redirect_header($redirect_page.'='.$com_itemid.'&com_id='.$com_id.'&com_mode='.$com_mode.'&com_order='.$com_order, 1, "No URLs permitted for unregistered users"); exit(); }; } The addition is actually this: le="color: #000000"><?php $myts =& MyTextSanitizer::getInstance(); if (eregi('<A ',$myts->sanitizeForPreview($com_text,1))) { redirect_header($redirect_page.'='.$com_itemid.'&com_id='.$com_id.'&com_mode='.$com_mode.'&com_order='.$com_order, 1, "No URLs permitted for unregistered users"); exit(); }; I have been using it for a month. So far no spam at all. And users have not noticed any change in the interface. Even the anonymous ones. They're happy and so am I. |
| Re: Anti-Spam Operation |
| by kyraha on 2006/8/21 21:39:25 I have implemented a very simple approach with one of my phpbb boards. Maybe we could use something similar here too. The point is: all the spammers need are href links. On the other hand, most of anonymous posters don't want to post such links. What I did is just deny the entire post if it is anonymous and it contains a href link in any form - [ url ] or < a href= > or just http substring. A human poster can read the error message and edit his/her post to match the requirements or go ahead and register to be able to post links if links are so important to him/her. Spam-bots can not do that and just bounce back with no success (bye-bye). So far it works great. I tried to implement the same with my XOOPS site but got confused with all that spaghetti of the modules/includes structure. But you guys got the idea. Please let me know if anyone succeeds with the coding. Thank you. |
| Re: Anti-Spam Operation |
| by macmend on 2006/2/16 16:15:16 this guys site although on a different cms has some interesting thoughts here http://www.i-marco.nl/weblog/archive/2005/08/17/bye_bye_referrer_spammers_21 and here http://www.i-marco.nl/weblog/archive/2005/08/24/trackback_spam_eliminated |
| Re: Anti-Spam Operation |
| by peacearena on 2005/7/20 23:10:33 Below is a plugin for Wordpress. Can this be adapted for Xoops? /* Plugin Name: Email Obfuscator Plugin URI: http://blackbird.casaparrina.it/programmazione/progetti/25 Description: Obfuscate email address in post body Version: 1.0 Author: Michele Ferretti Author URI: http://blackbird.casaparrina.it */ if (function_exists('add_filter')) { function __obfuscate_email_action($email){ $email_outpunt = ""; for( $i=0 ; $i<strlen($email) ; $i++ ){ $email_outpunt .= "". ord(substr($email, $i, 1)) .";"; } return $email_outpunt; } function __obfuscate_email($content) { $content = preg_replace("/([\\w\\d\\.\\_]+@[\\w\\d\\.\\_]+)/e", "__obfuscate_email_action('\$1')", $content); return $content; } add_filter('the_content', '__obfuscate_email'); } |
| Re: Anti-Spam Operation |
| by Marco on 2005/6/18 8:59:27 Could/should we implement such a system to prevent spambots from getting email adresses http://www.php-help.net/search.php?q=spam I looked for such a functionnality in XOOPS core code, but didn't find the same feature. The main objective is to prevent mail adresses, written in articles for example, from being leeched too easily. I don't know which system mambo has implemented. Could be great if someone investigated over there their solution (if any) marco |