jonathanbolland / drydock

Automatically exported from code.google.com/p/drydock
0 stars 0 forks source link

Option to decide how to handle banned words (from blacklist) #98

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
Currently, if the model on kchan is to be believed as still accurate, the post 
containing the banned word still goes through, except with the banned word 
renamed (to whatever is hard coded, I think it's gamefaqs.com for some reason).

This should be changed in the following ways:
1) Add the option of how to handle the triggering of the banned words, either 
rejecting the post completely or changing the word (current behavior)
2) Allow the customization of the replacement word so that it's not always 
gamefaqs.com

This could be done in 031 but I want to keep 031 feature locked as much as 
possible now that we're finally tackling those last few bugs.

Original issue reported on code.google.com by TaQS...@gmail.com on 2 Feb 2011 at 9:05

GoogleCodeExporter commented 8 years ago
I'm going to add antispam to the ban page in 032 so that bots cant just unban 
themselves when their ban expires via automatic ban removal exploitation

Before warnings (duration 0) or expired bans are lifted, you have to solve a 
captcha to actually remove it.  This should cut down on bots coming back from 
being banned only to spam once again and be banned again.

It will work like this:

If admin has elected to ban blacklisted words (new default behavior)
Bot (or even an innocent user) posts a banned word (from blacklist) and is 
subsequently banned (via new code)
They refresh the page, only to find they have been banned.
If the ban duration for blacklist bans is set to 0, the ban is actually a 
warning
User solves captcha (or bot doesn't, hopefully) and the ban is lifted
If the ban is several hours long (basically not a warning and not a permaban)
User solves captcha (or bot doesn't, hopefully) and the ban is lifted

If text replacement is used instead
Post goes through, offending site is replaced with defined text (currently 
hardcoded, but ideally all of this will be placed in a new admin menu, 
anti-spam, that will replace the current black list menu)
Board fills with xxxxxxxxxxxx posts :[

Original comment by TaQS...@gmail.com on 7 Feb 2011 at 7:42