Hello there. i want to know the opened web address from my browser in java. Any one who can help me?


Thanks

Any specific reason why you want Java to do that ?

However According to me it doesn't seem possible, as your browser is a completely different "process" just as there would be a separate "java process" in which your program would be executing.

Because i want to block some site.

Because i want to block some site.

Then why not just put a dummy entry in the hosts file?

Then why not just put a dummy entry in the hosts file?

I don't know how. Please tell me, write simple code.

thanks

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.