473,396 Members | 1,972 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Create MIME Filter for IE wtih C#?

Anyone ever done it? I basically need to create an app similar to a
profanity filter... when a certain word in HTML appears, it gets
replaced before the user sees it. The only resources I can find from
Microsoft are written in C++ and are very vague (implement this
interface, implement that interface, instead of sample code). Looking
for help.

Thanks,

--Jon
Dec 24 '07 #1
8 2970
Jon,

Those are pretty much the resources you will have to implement. There
are no .NET conversions, but because of the ability to expose .NET types to
COM (and implement COM interfaces) you are able to do this in .NET. What
are the interfaces that you have to implement?
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard.caspershouse.com

<jc******@fourtentech.comwrote in message
news:05**********************************@i12g2000 prf.googlegroups.com...
Anyone ever done it? I basically need to create an app similar to a
profanity filter... when a certain word in HTML appears, it gets
replaced before the user sees it. The only resources I can find from
Microsoft are written in C++ and are very vague (implement this
interface, implement that interface, instead of sample code). Looking
for help.

Thanks,

--Jon

Dec 24 '07 #2
From what I gather, I need:

IInternetProtocolRoot::Start
IInternetProtocolSink::ReportProgress
IInternetProtocolSink::ReportData
IInternetProtocol::Read

...the problem is, I've never worked with COM interfaces before, and I
have no idea how I would write this. Even more general code that
showed how to implement COM interfaces would be helpful.

--Jon
On Dec 24, 12:11*pm, "Nicholas Paldino [.NET/C# MVP]"
<m...@spam.guard.caspershouse.comwrote:
Jon,

* * Those are pretty much the resources you will have to implement. *There
are no .NET conversions, but because of the ability to expose .NET types to
COM (and implement COM interfaces) you are able to do this in .NET. *What
are the interfaces that you have to implement?

--
* * * * * - Nicholas Paldino [.NET/C# MVP]
* * * * * - m...@spam.guard.caspershouse.com

<jcorb...@fourtentech.comwrote in message

news:05**********************************@i12g2000 prf.googlegroups.com...
Anyone ever done it? *I basically need to create an app similar to a
profanity filter... when a certain word in HTML appears, it gets
replaced before the user sees it. *The only resources I can find from
Microsoft are written in C++ and are very vague (implement this
interface, implement that interface, instead of sample code). *Looking
for help.
Thanks,
--Jon- Hide quoted text -

- Show quoted text -
Dec 24 '07 #3
Googling on ISAPI might help

Just a thought

//CY
Dec 25 '07 #4
ch*******@gmail.com wrote:
Googling on ISAPI might help
AFAIK then ISAPI is a server side technology.

Arne
Dec 26 '07 #5
On 26 Dec, 02:10, Arne Vajhøj <a...@vajhoej.dkwrote:
christ...@gmail.com wrote:
Googling on ISAPI might help

AFAIK then ISAPI is a server side technology.

Arne
Yepp, api:s for controlling the IIS before it makes something...

I was thinking about talong the example of setting up a chatt and then
filter
out bad words (profanity filter) on a server that I can control (and
can be sued if missused) with isapi...

Not filtering the client, there should be a lot of parental control
tools for that without programming...

//CY
Dec 26 '07 #6
For a MIME parser (Mail not HTML) in cs there is
http://www.codeproject.com/KB/cs/mime_project.aspx
//CY
Dec 26 '07 #7
Lew
ch*******@gmail.com wrote:
I was thinking about talong the example of setting up a chatt and then
filter
out bad words (profanity filter) on a server that I can control (and
can be sued if missused) with isapi...
I don't know about lawsuits, but profanity filters can cause trouble. For one
thing, the definition varies with culture - in parts of the English-speaking
world the adjective "bloody" is more profane than in others. Also a
discussion like this one, where a word might be cited in an analytical
context, probably shouldn't be filtered as strenuously as a flame rant.

AOL got in trouble with a profanity filter a few years back when all the
members of a breast cancer survivor support community got blocked for having a
discussion about "breasts".

--
Lew
Dec 26 '07 #8
AOL got in trouble with a profanity filter a few years back when all the
members of a breast cancer survivor support community got blocked for having a
discussion about "breasts".

--
Lew
Yeah, heard about one that filteerd pics of pigs out, parent control
thinking it was bare skin...

or that might have bean "a rat in the pizza"... never tried it (parent
control at home...), we use surfcontrol at work and it banns all
search eng. like yahoo, alltheweb, but not google
bcause its a lot of not nice words there... but it can be adjusted...
think google was fixed first... or found first then we take them one
by one... (allowing search eng. - not results)

Ohh, really off point... *sorry*

//CY
Dec 26 '07 #9

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

9
by: superprad | last post by:
"X-No-Archive: yes" what I am looking for is 1. To create a list of different words of various lengths(1-15) using A-Z,a-z,0-9 and punctuations.Basically anything that could be found on a...
4
by: John Mark Howell | last post by:
Sorry for the cross postings, but I'm getting nowhere. Does anyone know how to create a MIME for an HTML email that contains images? I can create the MIME body parts, but I don't know how to get...
1
by: poohnie08 | last post by:
i have a excel spreadsheet showing staff name, date,work hour, ot hour, slot1, slot2, slot3, slot4 and others). The "()" will keep repeating from day 1 until end of month. eg in excel spreadsheet,...
7
by: dog | last post by:
I've seen plenty of articles on this topic but none of them have been able to solve my problem. I am working with an Access 97 database on an NT4.0 machine, which has many Access reports. I...
0
by: Patrick | last post by:
I'm working on a contact management application, and need a hand with one aspect... Here's what I want to create: ------------------------------------ A form split into two parts. There is a...
3
by: John Mark Howell | last post by:
I've got a MIME message that was originally an HTML email with embedded images. When the email is received (to GMail) it is now in MIME format. The HTML portion is now split out into the HTML and...
4
by: Daniel Sitima | last post by:
I cannot to create project in Windows Server 2003 with Visual Studio .NET 2003; The error returned was: The default Web access mode for this project is set to file share, but the project...
13
by: Daniel Walzenbach | last post by:
Hi, Imagine the following situation: I have an asp.net application which allows uploading files to a SQL Server 2000 database (Files are stored as type "images"). As a next step I would like to...
7
by: geek7 | last post by:
OK, I'm trying to create an email and when it sends the email, it mostly works except that there are '!' inserted at some spots. Checking the html source of the email, looks like they are...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.