Project Description
CustomURL is a small utility for custom URL protocols. This program helps you launch your business application from a Intranet web page.

CustomURL allows you to run any EXE file from a html page. You can for example associate the rdp:// protocol with Remote Desktop Client or the ssh:// protocol with Putty or another SSH client.

Installation / Usage

Download CustomURL.exe from and save it to the System32 folder in you windows directory. To configure URL protocols execute CustomURL.exe by double-clicking in windows explorer or type CustomURL in the "Run" dialog in the start meny.

How does it works?

CustomURL acts like a Proxy between the URL and the application, so the URL registration will Always referer to CustomURL executable.

URL protocols are registered in the windows registry at HKLM\Software\Classes or HKCU\Software\Classes. If you are using a 64-bit operating systems you also need to register the protocol at HKLM\Software\Wow6432Node\Classes or HKCU\Software\Wow6432Node\Classes to make it work for 32-bit applications. Read more about registering URL protocols at http://msdn.microsoft.com/en-us/library/aa767914(VS.85).aspx.

If you register the protocol foo using this tool, CustomURL.exe will be registered as protocol handler for URLs beginning with foo://. CustomURL will then receive the URL calls and execute the application you have assign to the foo protocol. Parts of the URL, for example a host name, can be passed to the assigned application as command line arguments.

Security considerations

This tool uses the .Net 2.0 System.Uri class to parse and extract parts of the URL. No extra validation is done on the extracted URL parts. For security reasons only the host, port and user information is extracted, any query parts of the URL will be ignored.

Supported variables

%Host% = Hostname
%Port% = Port
%Authority% = Hostname:Port
%UserInfo% = Username

Note! Querystring parameters are not supported!

Screenshots

Main window, shows registered protocols assigned with CustomURL.
CustomURL1.png

Assigning a new protocol to CustomURL and register the command line to execute for this protocol.
CustomURL2.png

Last edited Jan 16 at 10:41 AM by KalleLundberg, version 12