Ulf Dittmer wrote:The code doesn't seem to accept or monitor either incoming or outgoing connections, so I'm not sure how it could be blocking anything...?
What is the underlying problem you're trying to solve?
Ulf Dittmer wrote:Can you describe in words what that code is supposed to be doing? Especially, are you trying to block outgoing connections or incoming connections? "Blocking a web site" only makes sense for outgoing connections (because incoming connections are not tied to web sites, they're tied to IP addresses), but hard to tell from the code without knowing what it does.
Ulf Dittmer wrote:Oh, it's not the Java process starting the connections? So what you're talking about is a proxy. Why do you want to write your own? There are any number of filtering proxies out there, even open source ones written in Java, if that's what you want to use.