El miércoles, 3 de octubre de 2012 12:02:43 UTC+2, hon123456 escribió:
Thanks bradbury9,
I have checked the MSDN Firewall reference, but I
cannot figure out how to block the http file download in C#. Can u
suggest some hints or provide me some tutorial on how to block the
http file download in C#.
Thanks.
There are some alternatives:
- Firefox (plugin) or Internet explorer (BHO). Those are not related to c# but could be the easiest to implement.
- Hook into firefox/IE as Arne mentioned. Kinda hard, antivirus could prevent the hook, c# may not be the best language to use (Arne already said that).
- Windows firewall API. To block specific http trafic (block some content but not all http trafic) you would need to do Deep Packet Inspection (DPI). Honestly, dont know if that can be accomplished using windows firewall API because never used it.
- In the router or firewall create a new DPI rule. It depends on your router capabilities. Most domestic ADSL routers have no DPI at all.