Click here to Skip to main content
16,012,223 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: dialog background color not changing Pin
Laxman Auti18-Jun-06 18:50
Laxman Auti18-Jun-06 18:50 
GeneralRe: dialog background color not changing Pin
locoone19-Jun-06 11:33
locoone19-Jun-06 11:33 
AnswerRe: dialog background color not changing Pin
Laxman Auti19-Jun-06 18:48
Laxman Auti19-Jun-06 18:48 
QuestionUse between the panel button and control key Pin
sdhtyjnniutnbjnhbghb18-Jun-06 15:43
sdhtyjnniutnbjnhbghb18-Jun-06 15:43 
QuestionHow to output UTF-8/UTF-16 string in VS? Pin
Best Kiluyar18-Jun-06 15:32
Best Kiluyar18-Jun-06 15:32 
AnswerRe: How to output UTF-8/UTF-16 string in VS? Pin
Michael Dunn18-Jun-06 17:56
sitebuilderMichael Dunn18-Jun-06 17:56 
QuestionInternet Filtering Applications Pin
dipple18-Jun-06 15:14
dipple18-Jun-06 15:14 
AnswerRe: Internet Filtering Applications Pin
Randor 18-Jun-06 16:46
professional Randor 18-Jun-06 16:46 
Your not missing anything simple.

There are only 5 methods I can think of to filter internet content from the end-users machine that are acceptable.

1.) Transparent redirection
2.) Winsock proxy DLL (Not a good idea)
3.) Winsock LSP
4.) TDI layer filter
5.) NDIS layer filter

Internet Explorer hooks or Detours is simply not an option in my opinion. If your looking to filter network content with minimal coding, I would suggest that you take a look at the Layered Service provider samples that were included with the Platform SDK.

In the folder: \Microsoft Platform SDK\Samples\NetDS\WinSock\LSP

If you take a look at the ifslsp sample, you will see it demonstrate URL logging. If you want to implement a simple transparent redirect, you can modify this sample in about 5 minutes by simply editing the FindDestinationAddress() function. Simply redirect all outgoing HTTP request to 127.0.0.1 to a local filter.

However if your wanting to filter content without a localhost proxy you would need to extend the non-IFS sample. You have more control over winsock send and receives with the non-IFS.

If your looking for a more secure, method of content filtering, I'd recommend TDI layer. There is a sample here on codeproject than can be extended to accomplish this. I am telling you all of this from first-hand experience. I have already implemented an LSP based content filter, and then about a year ago I implemented a TDI based solution, and retired my old LSP based code.

Ultimately, the best method of content filtering is on the NDIS layer... But much of it is undocumented, and I have spent many hours experimenting with NDIS driver implementations. Maybe one of these days I will be able to make that work, but not yet Frown | :( Im not guru enough...yet Smile | :)

Best Wishes,
-randor



GeneralRe: Internet Filtering Applications Pin
Rahul Vaishnav1-Nov-10 23:43
Rahul Vaishnav1-Nov-10 23:43 
QuestionUsing WriteFile [modified] Pin
capricious_00118-Jun-06 15:03
capricious_00118-Jun-06 15:03 
AnswerRe: Using WriteFile Pin
Michael Dunn18-Jun-06 15:17
sitebuilderMichael Dunn18-Jun-06 15:17 
GeneralRe: Using WriteFile Pin
capricious_00118-Jun-06 15:42
capricious_00118-Jun-06 15:42 
GeneralRe: Using WriteFile [modified] Pin
Stephen Hewitt18-Jun-06 16:47
Stephen Hewitt18-Jun-06 16:47 
Questionscrolling text Pin
locoone18-Jun-06 12:04
locoone18-Jun-06 12:04 
AnswerRe: scrolling text [modified] Pin
_AnsHUMAN_ 18-Jun-06 17:46
_AnsHUMAN_ 18-Jun-06 17:46 
GeneralRe: scrolling text Pin
locoone18-Jun-06 17:47
locoone18-Jun-06 17:47 
GeneralRe: scrolling text Pin
_AnsHUMAN_ 18-Jun-06 17:52
_AnsHUMAN_ 18-Jun-06 17:52 
Questionchange derived class - building a dll an import it Pin
tbrake18-Jun-06 10:37
tbrake18-Jun-06 10:37 
AnswerRe: change derived class - building a dll an import it Pin
Laxman Auti18-Jun-06 19:44
Laxman Auti18-Jun-06 19:44 
QuestionWriteConsoleOutput() Problem [modified] Pin
CoffeeAddict1918-Jun-06 10:07
CoffeeAddict1918-Jun-06 10:07 
AnswerRe: WriteConsoleOutput() Problem Pin
Randor 18-Jun-06 11:22
professional Randor 18-Jun-06 11:22 
Questionproblem with new and pointers Pin
V_shr18-Jun-06 7:40
V_shr18-Jun-06 7:40 
AnswerRe: problem with new and pointers Pin
Shog918-Jun-06 8:26
sitebuilderShog918-Jun-06 8:26 
GeneralRe: problem with new and pointers Pin
V_shr18-Jun-06 10:11
V_shr18-Jun-06 10:11 
GeneralRe: problem with new and pointers Pin
Shog918-Jun-06 10:26
sitebuilderShog918-Jun-06 10:26 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.