Webmaster Forum

Sponsored Reviews   Improve your ranking, submit to directories   V7N Directory
Go Back   Webmaster Forum > Web Development > Web Design Lobby > Coding Forum
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

Coding Forum Problems with your code? Let's hear about it.

Reply
 
LinkBack Thread Tools Display Modes
Old 03-22-2008, 07:20 AM   #1 (permalink)
Junior Member
 
Join Date: 03-22-08
Posts: 2
iTrader: 0 / 0%
Latest Blog:
None

wilcosky is liked by many
Bad Word Filter

Is there such a thing as a bad word filtering script that can be placed in the <HEAD> tags of my website that will filter out certain words that I choose no matter where they are in the page?

I know there are scripts I can add to my forms to do this so when the visitor submits text the script checks for bad words, but, I have multiple forms on my site, it would be a lot easier if there was a script that would do the filtering no matter which form the bad word was posted from.

I know it's different, but for example... we can put <b> at the beginning of a paragraph and all the text will change to bold. Why isn't there a script that would allow us to put <? include("filter.php); ?> or something similar that would filter any bad words anywhere on the page!?!? Instead all I'm finding are scripts that you add to forms.
wilcosky is offline  
Add Post to del.icio.us
Reply With Quote
Sponsored Links
SEO Hosting by HostGator  Advertise Here  Buy Blog Links
Old 03-23-2008, 10:18 AM   #2 (permalink)
Contributing Member
 
Join Date: 06-11-07
Posts: 148
iTrader: 0 / 0%
Latest Blog:
None

Capo64 is on the right pathCapo64 is on the right path
you can have something like:

Code:
<script type="text/javascript"> function bFilter(a,b) { body.innerHTML = body.innerHTML.replace(a,b); } </script> <body onload="bFilter("****","f**k");bFilter("shit","s**t");">
didn't test it or anything, but i'm sure something like that would work

Edit:
in the onload="" code, v7n filtered out my first bad word (the f one) lol,

but you get the point..
Capo64 is offline  
Add Post to del.icio.us
Reply With Quote
Old 03-23-2008, 12:21 PM   #3 (permalink)
Contributing Member
 
Join Date: 06-29-07
Posts: 110
iTrader: 0 / 0%
mangome is liked by many
js filters can be passed, used server-side filters
__________________
Team Aguilar sells San Diego Foreclosures and also provides Real Estate Short Sale Services to help homeowners sell their home and avoid foreclosure.
mangome is offline  
Add Post to del.icio.us
Reply With Quote
Old 03-23-2008, 05:46 PM   #4 (permalink)
Junior Member
 
Join Date: 03-22-08
Posts: 2
iTrader: 0 / 0%
Latest Blog:
None

wilcosky is liked by many
cool, thanks for responding I'll check that code out!
wilcosky is offline  
Add Post to del.icio.us
Reply With Quote
Old 03-25-2008, 03:12 AM   #5 (permalink)
Contributing Member
 
Join Date: 06-29-07
Posts: 110
iTrader: 0 / 0%
mangome is liked by many
in that code you can use an array to keep all bad words
__________________
Team Aguilar sells San Diego Foreclosures and also provides Real Estate Short Sale Services to help homeowners sell their home and avoid foreclosure.
mangome is offline  
Add Post to del.icio.us
Reply With Quote
Go Back   Webmaster Forum > Web Development > Web Design Lobby > Coding Forum

Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Bypass Filter Technique Web Design Lobby 1 09-25-2006 02:23 PM
How to get out of &filter=0 filter eCommando Google Forum 2 01-31-2005 01:36 AM
KPT filter ? Blonde Graphic Design Forum 6 07-26-2004 12:32 PM


Sponsor Links
Get exposure! Get exposure! Find Scripts Web Hosting Directory Get exposure! SEO Blog


All times are GMT -7. The time now is 05:38 AM.
© Copyright 2008 V7 Inc