Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 31625
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 10, 20262026-05-10T13:38:04+00:00 2026-05-10T13:38:04+00:00

Not very technical, but… I have to implement a bad words filter in a

  • 0

Not very technical, but… I have to implement a bad words filter in a new site we are developing. So I need a ‘good’ bad words list to feed my db with… any hint / direction? Looking around with google I found this one, and it’s a start, but nothing more.

Yes, I know that this kind of filters are easily escaped… but the client will is the client will !!! 🙂

The site will have to filter out both english and italian words, but for italian I can ask my colleagues to help me with a community-built list of ‘parolacce’ 🙂 – an email will do.

Thanks for any help.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. 2026-05-10T13:38:05+00:00Added an answer on May 10, 2026 at 1:38 pm

    I didn’t see any language specified but you can use this for PHP it will generate a RegEx for each instered work so that even intentional mis-spellings (i.e. @ss, i3itch ) will also be caught.

    <?php  /**  * @author unkwntech@unkwndesign.com  **/  if($_GET['act'] == 'do')  {     $pattern['a'] = '/[a]/'; $replace['a'] = '[a A @]';     $pattern['b'] = '/[b]/'; $replace['b'] = '[b B I3 l3 i3]';     $pattern['c'] = '/[c]/'; $replace['c'] = '(?:[c C (]|[k K])';     $pattern['d'] = '/[d]/'; $replace['d'] = '[d D]';     $pattern['e'] = '/[e]/'; $replace['e'] = '[e E 3]';     $pattern['f'] = '/[f]/'; $replace['f'] = '(?:[f F]|[ph pH Ph PH])';     $pattern['g'] = '/[g]/'; $replace['g'] = '[g G 6]';     $pattern['h'] = '/[h]/'; $replace['h'] = '[h H]';     $pattern['i'] = '/[i]/'; $replace['i'] = '[i I l ! 1]';     $pattern['j'] = '/[j]/'; $replace['j'] = '[j J]';     $pattern['k'] = '/[k]/'; $replace['k'] = '(?:[c C (]|[k K])';     $pattern['l'] = '/[l]/'; $replace['l'] = '[l L 1 ! i]';     $pattern['m'] = '/[m]/'; $replace['m'] = '[m M]';     $pattern['n'] = '/[n]/'; $replace['n'] = '[n N]';     $pattern['o'] = '/[o]/'; $replace['o'] = '[o O 0]';     $pattern['p'] = '/[p]/'; $replace['p'] = '[p P]';     $pattern['q'] = '/[q]/'; $replace['q'] = '[q Q 9]';     $pattern['r'] = '/[r]/'; $replace['r'] = '[r R]';     $pattern['s'] = '/[s]/'; $replace['s'] = '[s S $ 5]';     $pattern['t'] = '/[t]/'; $replace['t'] = '[t T 7]';     $pattern['u'] = '/[u]/'; $replace['u'] = '[u U v V]';     $pattern['v'] = '/[v]/'; $replace['v'] = '[v V u U]';     $pattern['w'] = '/[w]/'; $replace['w'] = '[w W vv VV]';     $pattern['x'] = '/[x]/'; $replace['x'] = '[x X]';     $pattern['y'] = '/[y]/'; $replace['y'] = '[y Y]';     $pattern['z'] = '/[z]/'; $replace['z'] = '[z Z 2]';     $word = str_split(strtolower($_POST['word']));     $i=0;     while($i < count($word))      {         if(!is_numeric($word[$i]))          {             if($word[$i] != ' ' || count($word[$i]) < '1')              {                 $word[$i] = preg_replace($pattern[$word[$i]], $replace[$word[$i]], $word[$i]);              }          }         $i++;      }     //$word = '/' . implode('', $word) . '/';     echo implode('', $word);  }  if($_GET['act'] == 'list')  {     $link = mysql_connect('localhost', 'username', 'password', '1');     mysql_select_db('peoples');     $sql = 'SELECT word FROM filters';     $result = mysql_query($sql, $link);     $i=0;     while($i < mysql_num_rows($result))      {         echo mysql_result($result, $i, 'word') . '<br />';         $i++;      }      echo '<hr>';  } ?> <html>     <head>         <title>RegEx Generator</title>     </head>     <body>         <form action='badword.php?act=do' method='post'>             Word: <input type='text' name='word' /><br />             <input type='submit' value='Generate' />         </form>         <a href='badword.php?act=list'>List Words</a>     </body> </html> 
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I know this is not a very technical question, but it's for all technical
I am not very familiar with Regular expression, but I am asked to modify
Today i tried to implement the owner drawn menu item support in Cocoa and
I don't how to frame the title for this question. If not appropriate please
I have requirement: for a function, I get the input as a stream of
These seem like a great combination--I'd expect to see more on at least GWT/iPhone
Looking at several posts, I get a feel that many of the questions arise
I am wondering about the benefits of having the string-type immutable from the programmers
I'm deploying an early bound styled VBA module that needs Scripting.Dictionary and RegExp .
I recently attempted adding Zen Coding to my tool box of software development box

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.