Now I need a program which I call it DNS filter program,and I have a file called FilterTable.txt(Attachments).The functions of the program are as follows.I open an Internet exporer,if I keyin "www.hit.edu.cn"(its ip is 219.217.227.180),the program will search FilterTable and access google'DNS 8.8.4.4 to parse the site.But if I keyin "www.baidu.com",the program will search TilterTable.txt and return "cannot access!".
How can I write the program using java? Vvvvvvvvvvvvvvery thank you!
Tim Moores
Rancher
Joined: Sep 21, 2011
Posts: 2407
posted
0
You're talking about an HTTP proxy. Instead of wring it from scratch, why not use an existing one? There used to be one called "Muffin", although it's probably outdated now. But a web search will find others. Any particular reason it needs to be written in Java?
You said you were writing a program, but then you started talking about what Internet Explorer should do. I don't understand how those two things are related.