MySQL Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsDatabasesMySQL Help

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
1200+ fellow developers rate and compare features of the top IDEs, like Visual Studio, Eclipse, RAD, Delphi and others, across 13 categories. Enjoy this FREE Download of the IDE User Satisfaction Study by Evans Data Corporation. Download Now!
  #1  
Old June 2nd, 2000, 07:25 PM
dave981 dave981 is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Mar 2000
Location: Minneapolis, MN
Posts: 48 dave981 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 51 m 53 sec
Reputation Power: 9
Send a message via ICQ to dave981
I am currently in the process of setting up a classified Ads section on my web site.
What i would like to do is have a way to filter what can be posted - So that posts containing certain "offensive" language will be automatically deleted.
Has anyone written any script such as this? I would prefer it to run every time someone posts. OR if possible to make it so that certain words would stop the post in the submit field (maybe using Java? i have no idea...)
If anyones had any luck with this, please let me know!
thanks,
Dave

Reply With Quote
  #2  
Old June 3rd, 2000, 02:36 AM
Shiju Rajan's Avatar
Shiju Rajan Shiju Rajan is offline
.Net Developer
Dev Shed Novice (500 - 999 posts)
 
Join Date: Feb 2000
Location: London
Posts: 987 Shiju Rajan User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 3 h 26 m 22 sec
Reputation Power: 9
Send a message via MSN to Shiju Rajan Send a message via Yahoo to Shiju Rajan

I would suggest you to write this in a perl script. which can filter the text entries very well.probably you can delete these entires or you can just replace this wrong words with '*' or something...




------------------
SR -
shiju.dreamcenter.net

"The fear of the LORD is the beginning of knowledge..."

Reply With Quote
  #3  
Old June 5th, 2000, 05:00 PM
Sepodati's Avatar
Sepodati Sepodati is offline
Banned
Dev Shed God 19th Plane (14000 - 14499 posts)
 
Join Date: Dec 1999
Location: Afghanistan
Posts: 14,378 Sepodati User rank is General 12nd Grade (Above 100000 Reputation Level)Sepodati User rank is General 12nd Grade (Above 100000 Reputation Level)Sepodati User rank is General 12nd Grade (Above 100000 Reputation Level)Sepodati User rank is General 12nd Grade (Above 100000 Reputation Level)Sepodati User rank is General 12nd Grade (Above 100000 Reputation Level)Sepodati User rank is General 12nd Grade (Above 100000 Reputation Level)Sepodati User rank is General 12nd Grade (Above 100000 Reputation Level)Sepodati User rank is General 12nd Grade (Above 100000 Reputation Level)Sepodati User rank is General 12nd Grade (Above 100000 Reputation Level)Sepodati User rank is General 12nd Grade (Above 100000 Reputation Level)Sepodati User rank is General 12nd Grade (Above 100000 Reputation Level)Sepodati User rank is General 12nd Grade (Above 100000 Reputation Level)Sepodati User rank is General 12nd Grade (Above 100000 Reputation Level)Sepodati User rank is General 12nd Grade (Above 100000 Reputation Level)Sepodati User rank is General 12nd Grade (Above 100000 Reputation Level)Sepodati User rank is General 12nd Grade (Above 100000 Reputation Level)  Folding Points: 70305 Folding Title: Intermediate FolderFolding Points: 70305 Folding Title: Intermediate FolderFolding Points: 70305 Folding Title: Intermediate FolderFolding Points: 70305 Folding Title: Intermediate Folder
Time spent in forums: 2 Months 3 Weeks 6 Days 22 h 38 m 20 sec
Reputation Power: 1784
Send a message via ICQ to Sepodati Send a message via Yahoo to Sepodati
You could also use PHP. You can search through the text field and replace certain words with some other text, or just deny the insert.

PHP offers the same regular expressions that you would use in perl and offers a simple interface to databases for storing your data also.

Regular expressions are a little hard to understand at first, but they are definetly what you would want to use in a situation like this...either in Perl or PHP.

---John Holmes
---www.SepodatiCreations.com

Reply With Quote
  #4  
Old June 8th, 2000, 05:41 PM
Adrian2 Adrian2 is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: May 2000
Location: London, England
Posts: 251 Adrian2 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 9
As we're dealing with the antics of users here, there isn't necessarily a simple, good technical solution.

Many guestbook scripts attempt to filter out rude words, but can be easily tricked into displaying R U D E W O R D S and phonetic spellings of all our four-lettered favourites.

Would you enjoy maintaining a list of banned words?

What's to stop a posting that's offensive in sentiment but not in language?

I reckon if you're running a site like this you need to consider either/both:

* requiring users to register with the site and sending them a password by email. You should never let anybody just post direct to your site without some kind of accountability. And no, this isn't foolproof, but it deters the casual idiot. And log their IP addresses.

* if the quantity of ads is relatively small, then write a process where an operator has to eyeball and approve them before they're published. This could be combined with filtering that flags up suspects and written in such a way that the default is to accept with the minimum of clicks.

I'd be interested to hear from anyone who has experience of dealing with this issue on a large site. Do you do it all automatically or does every ad get read and approved by someone?

Reply With Quote
Reply

Viewing: Dev Shed ForumsDatabasesMySQL Help > Offensive Langauge / Posts - Auto Removal


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


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
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 2 hosted by Hostway