MyBB Community Forums

Full Version: how can i filter all suburl off one website by one filter ?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
in mybb, there is badword filter, that we can use it for replace badwords, but how can i use it for replace bad url ??? users use diffresnt page of one bad url, and i have to define alot of filters.

such as :
badurl.com
badurl.com/badpage.php
badurl.com/folder/badpage.php
and more link page...

how can i use one filter to replce all of the page of one url ???

i guss that i change 'parse_badwords' funtion in class_parser.php

specially this part :

$message = preg_replace("#(^|\W)".$badword['badword']."(\W|$)#i", "\\1".$badword['replacement'].'\\'.$index, $message);

i ask this question before :: http://community.mybb.com/thread-143333.html
but users dont understand my mean !! i ask it in difrent way.
One thread is enough. Don't create duplicate threads.

http://community.mybb.com/thread-143333.html