How do I set the Windows default browser, for a custom application, like foobar.exe?

All we need is an easy explanation of the problem, so here it is.

I have a custom application that I’d like to use in order to handle default browser requests; how do I configure Windows to use my application instead of the current default browser?

How to solve :

I know you bored from this bug, So we are here to help you! Take a deep breath and look at the explanation of your problem. We have many solutions to this problem, But we recommend you to use the first method because it is tested & true method that will 100% work for you.

Method 1

I’m also rather interested in knowing the answer to this. I’ve been looking for an app or some script that I can stick in as the ‘default browser’ that intercepts links and then prompts me what to do (open with browser A, B, or C, run custom app, etc). That would be so awesome.

According to this article,

When you select Make this the default browser in Internet Explorer and in later versions of Netscape, the browser registers itself into all of the following keys to make itself the default browser (among other entries that are written).


I have since found this awesome tool for windows:

Method 2

Looks like this is what I needed:

Update: I hacked together a quick registry script for this:

Method 3

See File Types and File Associations and Registering an Application to a URL Protocol.

Note: Use and implement method 1 because this method fully tested our system.
Thank you 🙂

All methods was sourced from or, is licensed under cc by-sa 2.5, cc by-sa 3.0 and cc by-sa 4.0

Leave a Reply