Thank you for being a valued part of the CNET community. As of December 1, 2020, the forums are in read-only format. In early 2021, CNET Forums will no longer be available. We are grateful for the participation and advice you have provided to one another over the years.


CNET Support

General discussion

HOST redirection

Dec 6, 2008 4:38PM PST

i have posted on another forum about this problem without success.

i currently use my host file to block bad sites. what i would like to do is have http loopback requests redirected to my own html document. although i have some experience with apache, i am not keen on installing a full blown web server on my computer, even if it is firewalled. im looking for a small compact program that is secure and accepts only local connections. does anyone know of such software?

it must be possible,


Discussion is locked

- Collapse -
You still need a server.
Dec 6, 2008 11:12PM PST
- Collapse -
Dec 7, 2008 4:59PM PST

thanks mate that is exactly what i was looking for, it works a treat. i do have another question though. it is a long shot but here goes.

i just created my own html document but i would also like to add a link to my host file, one that will launch notepad. i have tried a batch file in my htdocs folder, several different href syntax variations but none work or they only serve as a "save as" link. is it possible? im assuming i would need to use a proper scripting language like php. just wondering if its possible with html.

- Collapse -
No more.
Dec 8, 2008 12:21AM PST

No more launching applications from web pages. I decline to detail the history of why this is no longer allowed and frowned upon.

- Collapse -
Dec 8, 2008 6:38AM PST

because it can be exploited? Silly

if not with html can it be done with a scripting language like JS?

- Collapse -
What is JS?
Dec 8, 2008 6:42AM PST

If javascript the answer is to write it and try. The bitter answer is that your protection software should block it if not the browsers. What you ask is far too dangerous today.

- Collapse -
Dec 8, 2008 10:32AM PST

thanks ill try that, but i wouldnt call my own script running on my local pc for my personal use to open notepad dangerous. and i can easily reconfigure my HIPS software. thanks again

- Collapse -
The reasons are simple.
Dec 8, 2008 10:36AM PST

Microsoft never "nailed" the security of the IE browser. The concept of 'zones' helped but research 'cross domain' and other exploits and you see the only cure is to disallow launching.

- Collapse -
Dec 9, 2008 10:10AM PST

thanks, but i already know what XSS is. thanks for your help this thread can be closed.