miniBB ® miniBB®
miniBB Support Forums
 | Forums | Register | Reply | Search | Statistics | Manual |
Custom Tutorials and Modifications miniBB Support Forums / Custom Tutorials and Modifications /   

" Anti guest addon " - Reducing spam - guests cannot post links

Page  Page 3 of 3:  « Previous  1  2  3  
Author C0BALT
Registered
#31 | Posted: 24 Jan 2011 11:41 
For example if I want to ban this
ферт
Where would I add that into the .txt file addon_anti_guest_dict.php ?
I was reading that the list needs to be kept in alphabetical order.

Author Paul
Lead Developer
#32 | Posted: 25 Jan 2011 04:44 
C0BALT:
I was reading that the list needs to be kept in alphabetical order.

Hmm, where was you reading that?

An alphabetical order is more for your convenience. The list could be set up in any order, at least I've re-checked the algorithm and I see that it just compares all words or fragments with no reference to the order.

Author C0BALT
Registered
#33 | Posted: 25 Jan 2011 10:25 
Paul
Still my question remains...
How do you place this into a .php file?
ферт
and have it recognized.
Do I need to encode it?

This is what I get if I paste it into any of my 3 code editing programs
'????',

I'm not keen on trying (and seeing if it works) on a live forum.
Thank-you.

Author tom322
Registered
#34 | Posted: 25 Jan 2011 11:42 
C0BALT:
This is what I get if I paste it into any of my 3 code editing programs
'????',

I pasted it into regular Notepad or Notepad2 and it was saved correctly as 'ферт'.

Author C0BALT
Registered
#35 | Posted: 25 Jan 2011 21:44 | Edited by: C0BALT 
tom322
So, I added those characters to the file and upon trying to save it from Notepad in Win7 got this message.
addon_anti_guest.dict.php
This file contains characters in Unicode format which will be lost if you save this file as an ANSI encoded text file. To keep the Unicode information, click Cancel.... etc etc

Another thing that happened is when I got the email notification of the reply that Tom322 gave instead of placing...
ферт
It placed...
(remove the spaces between & and #)
'& #1092;& #1077;& #1088;& #1090;'

So, I did go ahead and did add
(remove the spaces between & and #)
'& #1092;',
'& #1077;',
'& #1088;',
'& #1090;',
to addon_anti_guest_dict.php
This did indeed work.
You can find codes which you can add to your ASCII based dict file here.
google (cyrillic ascii table) for a start...

Thank-you very much for all your suggestions and help.

Author C0BALT
Registered
#36 | Posted: 25 Jan 2011 21:53 | Edited by: C0BALT 
OK, so can you add wildcards... like this
'*ф*',
to
addon_anti_guest_dict.php

Author Paul
Lead Developer
#37 | Posted: 26 Jan 2011 03:49 
It all depends on the regional settings of your OS. Also, built-in Notepad is not the best tool for this. Most probably it will always offer to save file as Unicode - BUT if your forums are not Unicode (f.e. if they are Windows-1251), this is wrong. That's why we recommend Notepad2 or some other plain text editor.

Having Russian regional settings installed and Russian language, you should not have problems with this; however honestly I never tried it on Windows 7.

Also, I am not sure why do you try to put some certain fragment of the word - it's better to put fragments of the URL to prevent something. And this is actually not the best way to prevent from spamming, there is always work-around.

Wild-cards WILL NOT WORK for this add-on.

Author C0BALT
Registered
#38 | Posted: 27 Jan 2011 11:34 | Edited by: C0BALT 
Ooops, ok sorry, just read the last line, wild cards won't work.

I don't have russian installed.
I'm now banning posts by guests with a random assortment of Russian/Cyrillic characters in the body.

My last question still stands, and I'm wondering if wildcards can be placed into phrases in the addon_anti_guest.dict.php file.

like
'Viag*', // would ban anything starting with Viag
'*ф*', // would ban anything with ф in the entire post body...

Star(phrase)Star doesn't work though. I'm wondering if someone knows of a way to do this though.

Author Paul
Lead Developer
#39 | Posted: 27 Jan 2011 12:20 | Edited by: Paul 
Try to put these fragments without asterisks i.e.

'Viag',
'ф',

etc.

Author tkx211
Registered
#40 | Posted: 8 Oct 2011 14:59 | Edited by: tkx211 
Paul said:
The Captcha can be configured, so Anonymous poster enters code only once per session
Hi Paul, I think I have solution.

At captcha image, you can set:
$private_key='everything';
$timenow=time();
$captchaText=strtolower($captchaText);
$_SESSION['captcha_key']=md5($captchaText.''.$private_key.''.$timenow) .'|'. $timenow;

At php captcha file:
$private_key='everything';
$allow_time=300;//5minutes
$captchaText=(isset($_SESSION['captcha_key']))? $_SESSION['captcha_key']: 0;
$captcha_time=explode('|',$captchaText);
$captcha_text = strtolower($_POST['captcha_text'].''.$private_key.''.$captcha_time[1]);
if(md5($captcha_text)!=$captcha_time[0] || time()-$captcha_time[1]>$allow_time) {
die("FALSE");
} else {
//continue
}

This way make captcha available only in 5 minutes.
You can set it smaller.
If you write a post that spend more than 5 minutes, javascript simply auto-refresh captcha.

Author Paul
Lead Developer
#41 | Posted: 10 Oct 2011 11:13 | Edited by: Paul 
Thanks for the solution, but currently, I don't see a practical ground for it to implement. Sorry, but I don't understand, what is it created for?
I'm sure in 99.99% of cases a guest user will enter Captcha immediately after making his post.
I'd rather escape making headache for my own for just 0.01% of the audience.

Author Steve Shaw
Registered
#42 | Posted: 26 Jan 2012 17:09 
Is there a way to make Anti-Guest also work when users register?
I am getting spammers registering with URLs that include words I don't want used.

Any help appreciated.

Author Paul
Lead Developer
#43 | Posted: 26 Jan 2012 19:13 
Answering questions like "is there a way..." or "is this possible..." you should almost always expect an answer "yes".
In my practice, I've met nothing impossible regarding scripting PHP and input data.
And in miniBB, there is a very comfortable way of doing such customized changes without touching the core.

But - of course - it's only if you know what to do!
Hopefully miniBB provides lot of the free stuff to analyze and create something similar for your requirements.

Page  Page 3 of 3:  « Previous  1  2  3 
Custom Tutorials and Modifications miniBB Support Forums / Custom Tutorials and Modifications / " Anti guest addon " - Reducing spam - guests cannot post links Top

Your Reply Click this icon to move up to the quoted message

 Short link for this topic:

 ?
Only registered users are allowed to post here. Please, enter your username/password details upon posting a message, or register first.


Before posting, make sure your message is compliant with our forum posting rules. If not, it may be locked or deleted with no explanation.
 
 
miniBB Support Forums Powered by Forum Software miniBB ® Features  Requirements  Demo  Download  Showcase  Gallery of Arts
Compiler  Premium Extensions  Premium Support  License  Contacts
Proceed with the Captcha add-on: protect your miniBB-forums from the automated spam and flood.
Captcha Addon for miniBB