PDA

View Full Version : Miscellaneous Hacks - Ban some words/links from using on the forum


LordOfWAR_PC
01-22-2011, 10:00 PM
Product was updated to version 1.2.1

Changelog v1.2.1 :


Fixed bug, when guests was able to read posts (with parsed bbcodes) even after option - "Disable BBCodes in all existing posts, which already include denied words/links" was enabled.


Changelog v1.2 :


Threads/Posts and Pm's titles will be checked for banned strings too.
Now it is possible to customize your own error message for every banned word/link/string.


Changelog v1.1 :


Now error message are provided with banned word/link which was used in users message. So users will know which word they must delete to continue.
All links are urldecoded before checking, so trick with posting urlencoded links will not work anymore.


____

In some time, every VB forum admin have an situation, when someone or some spam-bots, or groups of peoples starting writting every time same "bad" words or when they every time publishing a links on their web-sites. They think that referals from your site will help them to grow up in search systems and e.t.c.

Vbulletin have an normal autocensor, which can change some words to the "*****", but it allows to the users to write a post... Also after using autocensor, if sometimes we will want to disable it - all this links/words must be resaved in every post to see them again (because even after disabling autocensor - peoples will see same - "*******").

____

So... With using "BannedWords" plugin, you can ban/deny some words/links(or their parts) from using in new posts/pm's. Users will see an error after trying to add new reply/start new thread or so... (error with text that he used banned word. To be clear - I am used "word" as any string which can be an part of users message).

This plugin allows you to specify banned words, users and usergroups which will be ignored by plugin (let's say - situation, when we want to leave possibility to publish forbidden links for moderators and admins) and others options.

Plugin options (screenshot) - vBulletin Options->Banned Words Plugin Settings :

https://vborg.vbsupport.ru/attachment.php?attachmentid=126152&stc=1&d=1296143491

Error which users will see after creating messages with denied words (screenshot) :

https://vborg.vbsupport.ru/external/2011/01/8.jpg

If you want to customize error message for every banned word, you must make new vbphrase (for needed banned word) in Languages & Phrases->Phrase Manager->Add New Phrase :


Phrase Type=Error Messages
Product=BannedWords
Varname=AnyYourVarName
Text=AnyYourErrorMessage (your error message can contain this word - "!bword!",which will be replaced by banned word which cause the error.


After you will make new vbphrase, you must go into this plugin options and type your banned word and phrase name as shown in Example #2 :

somelink.com,my_error_vbphrase1

(Banned Word/Link and Phrase/Var name must be separated by comma).

___

If you will enable option with disabling bbcodes in all posts (with denied words), which was created recently, they (posts) will looks as shown in this screenshot (with disabled bbcodes) :

https://vborg.vbsupport.ru/attachment.php?attachmentid=126002&stc=1&d=1295825479

___

Also you can disable this product in any time, and all recently blocked words will be allowed and bbcodes in old posts with denied words will works automatically.

Product was tested on VB 3.8.6 and VB 4.0.1, but must works also on every VB 3 or 4 version...

____

How to install :

Just import xml file as usual VB product.

Uninstallation :

Just uninstall this product as any other VB product.

How to update :

Uninstall and then reinstall product (before that, it is recomended to save your old options into some place).

____

For multilanguage forums :

After installing of "Ban some words/links from using on the forum" product, you will be able to find and edit needed vbphrases :


bannedwords_error
setting_bannedwords_onoff_desc
setting_bannedwords_onoff_title
setting_bannedwords_list_desc
setting_bannedwords_list_title
setting_bannedwords_exception_usrgroups_desc
setting_bannedwords_exception_usrgroups_title
setting_bannedwords_exception_users_desc
setting_bannedwords_exception_users_title
setting_bannedwords_use_in_pm_desc
setting_bannedwords_use_in_pm_title
setting_bannedwords_disable_bb_in_exist_post_desc
setting_bannedwords_disable_bb_in_exist_post_title

Jackie1
01-24-2011, 06:48 AM
Don't work in vbb 4.1.1.
Pls help me

LordOfWAR_PC
01-24-2011, 09:28 AM
Don't work in vbb 4.1.1.
Pls help me

Just tested it on Vb 4.1.1 forum and all works fine. Banned links was blocked.

//--Added

Or you are telling about Blog (not a forum ?). If yes, then sorry, it was developed for using on the forum only.

//--/Added



"Not work" means not working everywhere or only in some place ?

After installing the product, you must go to the "Vbulletin Options->Banned Words Plugin Settings", then enable and configure it (example was shown in the first screenshot there).

If plugin will be configured, then users will not be able to create new thread/new reply/save edited post/send PM/ShowPosts with denied words (depending on you plugin configuration). Others actions, like send public messages will not be checked.

Also you must understand, that if you added your user id or usergroup id into exceptions, then there will not be any restrictions for you (you will be able to make new posts with denied links/words, edit them, see them with enabled bbcodes and e.t.c., so if you want to test plugin - at the first step do not add any exceptions (or then test it from different user accounts with different usergroups). And if all will works fine, then you can think about usergroups or users exceptions).

___

If you do all what I wrote before and it's doesn't help, then check "Vbulletin Options->Plugin/Hook System". It must be enabled too :

https://vborg.vbsupport.ru/external/2011/01/6.jpg

rajubd
01-24-2011, 10:45 AM
it will be very usefull for me will install it soon..

rajubd
01-24-2011, 06:22 PM
work well in vb 4.1.1
moninated also...

Blackbeard02
01-24-2011, 06:24 PM
Thank you, this may save me some headaches

Jasem
01-24-2011, 09:18 PM
Thank you :up:

g0dfather1984
01-25-2011, 12:21 AM
Any chance of letting a user know what word they exactly said wrong?

LordOfWAR_PC
01-25-2011, 08:23 AM
Any chance of letting a user know what word they exactly said wrong?

Yes, i will add this option in next version

LordOfWAR_PC
01-25-2011, 10:46 PM
Product was updated to 1.1 version.

Changelog :


Now error message are provided with banned word/link which was used in users message. So users will know which word they must delete to continue.

https://vborg.vbsupport.ru/attachment.php?attachmentid=126112&stc=1&d=1296002131


All links are urldecoded before checking, so trick with posting urlencoded links will not work anymore.

valdet
01-27-2011, 09:54 AM
Can you also add an option to block this word on title only, or title/thread.

And what about vB 3.x versions.

Great hack. Thanks.

LordOfWAR_PC
01-27-2011, 11:13 AM
Can you also add an option to block this word on title only, or And


Ok, I will add an option with title blocking too.


what about vB 3.x versions.


3.8 versions are supported too (you can install it without any changes), I just don't want to make two same threads in both forums...

LordOfWAR_PC
01-27-2011, 02:00 PM
Product was updated to version 1.2.

Changelog v1.2 :


Threads/Posts and Pm's titles will be checked for banned strings too.
Now it is possible to customize your own error message for every banned word/link/string.



If you want to customize error message for every banned word, you must make new vbphrase (for needed banned word) in Languages & Phrases->Phrase Manager->Add New Phrase :


Phrase Type=Error Messages
Product=BannedWords
Varname=AnyYourVarName
Text=AnyYourErrorMessage (your error message can contain this word - "!bword!",which will be replaced by banned word which cause the error.


After you will make new vbphrase, you must go into plugin options again and type your banned word and phrase name as shown in Example #2 :

somelink.com,my_error_vbphrase1

(Banned Word/Link and Phrase/Var name must be separated by comma).

Taurus1
01-28-2011, 08:54 AM
This is not working at all on my forum. Nothing happens. No error message, nothing.

Please advise. I am on vb 4.1.1

Thanks!

LordOfWAR_PC
01-28-2011, 01:10 PM
So, you want to say that you added some word(s) into banned list, enabled plugin and after this, peoples still can make new threads/new posts with banned words ?

1. Make sure that you really enabled this plugin.
2. Check if plugin/hook system is enabled :

https://vborg.vbsupport.ru/attachment.php?attachmentid=126026&stc=1&d=1295868374

3. Maybe you have some others plugins, which are working with threads/posts too... (so there is some conflict)...

4. Did you added some usergroups or userid's in users exception list ? If yes, then check your usergroup and(or) userid - if you are in exception list, then plugin will ignore you - your account will not be checked, so you will be able to add even banned words...

P.S. As I wrote in second message - I am already tested plugin on vb 4.1.1 - so it must works...

Taurus1
01-28-2011, 02:06 PM
I am 100% sure I set it up correctly. So then there must be a conflict.

LordOfWAR_PC
01-28-2011, 02:26 PM
I am 100% sure I set it up correctly. So then there must be a conflict.

1. Can you pls send to me in PM screenshot of options menu, or just text of banned words ? I just want to check them by myself...

2. Where you tried it ? I mean - on creating new message, new thread, new pm ? Did you tried others words/links ?

BBF
01-29-2011, 10:49 AM
let's say that i banned the word "sex".
if some user want to replay / create new thread with the word "sex", it will delete his post automatically and show him error message?

another question, it is possible to define the mod to use the "original" vBulletin censor system?

LordOfWAR_PC
01-29-2011, 08:36 PM
let's say that i banned the word "sex".
if some user want to replay / create new thread with the word "sex", it will delete his post automatically and show him error message?

It will not delete no any post... Plugin will check users text (after he will click on post button) and if there is no any denied words, then message will be created on the forum, otherwise user will see an error with asking to delete forbidden words/links from his message.


another question, it is possible to define the mod to use the "original" vBulletin censor system?

No, it is other plugin, it works separately from original censorship system. But I can add in future version, something like - changing banned text to some word (or chars, like ***) in exists messages...

MikeF
02-09-2011, 05:23 PM
Here here! This is a GREAT mod, but the BBCode thing is terrible. I have several problems with prior post blocking. Here's my scenario: We are trying to block:

imageshack.us
imageshack
image shack
91.216.122.223

Why? ImageShack has some 1/1000 problem where a phishing attack that says you have a virus on your computer pops up out of nowhere. So we want to prevent our members from accessing or posting about ImageShack. That IP is also the phishing site.

We can prevent NEW posts/threads/PMs about this, but


Guests can still see the fully translated BBCode
Outputting raw BBCode just makes people more interested anyway


I highly suggest you fix the first problem, and secondly, you suggest putting up a block message in replacement of the specific text/URL that has already been posted. This would help people understand what is going on, and that the forum itself is not experiencing a strange error.

Otherwise, nice one. If you continue to develop this mod, it could be considered as MOTM and many people will adopt it as a standard for their site.

LordOfWAR_PC
02-10-2011, 01:59 PM
Guests can still see the fully translated BBCode




Thanks a lot for your message :). Bug is fixed now. I am updated plugin to v.1.2.1 :

Changelog v1.2.1 :


Fixed bug, when guests was able to read posts (with parsed bbcodes) even after option - "Disable BBCodes in all existing posts, which already include denied words/links" was enabled.


___

For others suggestions - I will think about them later. Maybe I will add some field, where admins will be able to write link to some image (or vbphrase with html support will be better ?), which will replace banned word in non parsed post.

netiforum
02-25-2011, 07:36 PM
<a href="http://vbsupport.org/forum/showpost.php?p=342870&postcount=4" target="_blank">http://vbsupport.org/forum/showpost....70&postcount=4</a>

harpreetxi
03-19-2011, 11:46 AM
dosen't work for me , can u help me ?

1) i imported
2) i went to settings> banned word > added domain.com on in 1st line
3) saved and went back to forum and created a thread
4) wrote domain.com in it and submitted and there was posted successfully.

DeathRS
03-19-2011, 10:33 PM
I installed it and works fine.

I was wondering if there is a way to exclude specific forums?

Can you do that?

LordOfWAR_PC
03-20-2011, 12:32 PM
http://vbsupport.org/forum/showpost.php?p=342870&postcount=4

Russian chars must be supported too... but "strtolower" function which is used in my plugin, probably still not case sensitive for others codepages... In the next version I will try to use "mb_strtolower" with users codedpage, it will help with different codepages...

dosen't work for me , can u help me ?

1) i imported
2) i went to settings> banned word > added domain.com on in 1st line
3) saved and went back to forum and created a thread
4) wrote domain.com in it and submitted and there was posted successfully.

If plugin already imported, then you must go to it's settings and :

1. Enable it.
2. Add needed bad words...
3. Check users which will be not blocked (Users/usergroups exception lists). If you added yourself into exception list, then forum will not block you...
4. Save settings.

I installed it and works fine.

I was wondering if there is a way to exclude specific forums?

Can you do that?

I don't understand... what means "exclude specific forums" ? If you don't want to block them, then just don't add them into a list...

DeathRS
03-20-2011, 01:00 PM
I want to block in some of the forum some words and not in others...

Like the exclude the usergroups option...

I need exclude forums option...

LordOfWAR_PC
03-20-2011, 01:55 PM
I want to block in some of the forum some words and not in others...

Like the exclude the usergroups option...

I need exclude forums option...

Ah, I understand. Ok, I will think about this in next version.

denman75
03-20-2011, 02:01 PM
Ah, I understand. Ok, I will think about this in next version.

is hoping on v2.0 cus i need that my admins can say everything in the admin sections
but i need restrictions on the open boards ,thank you and tagged! for future use

LordOfWAR_PC
03-20-2011, 02:05 PM
is hoping on v2.0 cus i need that my admins can say everything in the admin sections
but i need restrictions on the open boards ,thank you and tagged! for future use

It is already possible to exclude admin usergroups and they will not be blocked everywhere... Or you want to block them in others sections ? :)

harpreetxi
03-26-2011, 04:03 AM
I did enabled it , No1 is in exception , i added word.com and word but still i can post thread with that word :(

Can you please check my forum ? i'll give u login in pm

thehawkVB
05-05-2011, 07:01 PM
Is there a limit in the number of words?

I added 66 of them, didn't work, with one it did.

EDIT: Ok, it seems words are to be on different lines, not separated by comma, mea culpa :)

Thanks.

DNCL
07-28-2011, 12:17 AM
Hello dear LordOfWAR_PC, does this mod work well with the CKEditor in 4.1.4 or 4.15? if not can you upgrade it please so i can upgrade my 4.1.3 forum. :)

rajubd
07-28-2011, 01:14 AM
yes working on 4..1.4

nacaruncr
10-25-2011, 03:10 AM
Installed + tagged + MOTM + 5 Stars :D

Edit:
How I can do to appear all list of ban words when people trying to post?
example.... I have this webs in the list:
hidemylinks.com
zpag.es
adf.ly
ivpaste.com

How I can do to appear:
"Sorry, but Administrator denied one of the words, which you used in your message
hidemylinks.com, zpag.es, adf.ly, ivpaste.com
..."

regards :D

Gonzales
11-19-2011, 02:48 PM
perfect for my board, is work in 4.1.8, ty.

muratcan25
02-06-2012, 10:37 PM
how to vbulletin 3 ?

Samsine
04-19-2012, 08:25 AM
it work in 4.1.11

gsk8
11-10-2017, 12:48 AM
Seems to work fine on VB 4.2.5

I wish there was a way to ban the word "jap" without banning "japan". We have a huge international presence, and some folks from other countries don't understand that this is not an acceptable word.

DCD.RB
05-28-2018, 12:06 AM
This seem to work on vB 3.8, but I noticed someone was able to bypass this just having a quote or spoiler tags before the post.

I tested it, the banned words filter no longer checks for the words if the quotes/spoiler tags came before the banned words.

Edit: I got it, using this seems to break the plugin: