patch - C:\Windows\System32\drivers\etc\hosts

How can I redirect all websites to other website?
example for one:

 62.85.117.104 delfi.lv

i need for all websites..

62.85.117.104 *

(not work)

link|improve this question
I suspect you don't actually want to screw with DNS like that, but actually want to setup a proxy, or some sort of authentication. There's probably a much better way to accomplish your goal, if you tell us what that goal is. – Chris S May 28 '10 at 12:32
feedback

migrated from stackoverflow.com May 28 '10 at 12:25

This question came from our site for professional and enthusiast programmers.

closed as not a real question by MattB, Nick Kavadias, splattne May 30 '10 at 9:07

It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. See the FAQ for guidance on how to improve it.

1 Answer

You can't wildcard entries in the hosts file.

You would have to run your own DNS server that returned 62.85.117.104 for every query, then configure the network settings to use that server.

link|improve this answer
feedback