Click here to Skip to main content
15,886,833 members
Please Sign up or sign in to vote.
5.00/5 (2 votes)
Hi All,

I wanted to create a web filter either in C# or C++. I have search about this on Google, but didn't any relevant information. Exactly what I want is if someone tried to open "xyz.com", it should be redirect to localhost.. please do not suggest hosts file, it is very simple to hack.

Thanks in advance
Posted

You can create LSP(Layered Service Provider) for capturing internet traffic. Through Layered Service Provider you can intercept and modify inbound and outbound Internet traffic.
 
Share this answer
 
Comments
[no name] 24-Feb-12 7:22am    
Seems to be correct. 5+.
Can you please suggest any link which will help in my problem!
Member 10317429 12-Nov-13 10:49am    
very good
Member 11493156 10-Apr-15 3:31am    
@Pranit Kothari: Were u able to figure out the solution?
You can find LSP sample in windows SDK at location


"(Drive Letter)\Program Files\Microsoft SDKs\Windows\v7.1\Samples\netds\winsock\lsp" if you have 7.1 Microsoft SDK.



If you have Vista SDK then it will be at location "(Drive Letter)\Program Files\Microsoft SDKs\Windows\v6.1\Samples\NetDs\winsock\LSP"



Windows SDK can be downloaded from Microsoft site
http://www.microsoft.com/download/en/details.aspx?id=8279[^]
 
Share this answer
 
Comments
[no name] 24-Feb-12 7:39am    
5!

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900