Subscribe

Enter your email address:

Categories

 

September 2010
M T W T F S S
« Dec    
 12345
6789101112
13141516171819
20212223242526
27282930  

Archives

Disclaimer

© 2009 Zero Intellect. All rights reserved. The opinions expressed herein are my own personal opinions and do not represent my employer's view in anyway. This material is not sponsored or endorsed by any of the vendors mentioned in this website and their Logos are trademarks of their own and their affiliates.

Securing your URL with Hexadecimal codes

 

Hexadecimal equivalent codes of ASCII characters can be used to represent characters of a URL’s path and filename.

Each hex number is preceded by a “%” symbol to identify the following two numbers/letters as a hexadecimal representation of the character

An ASCII chart can be used for the conversion from ASCII to Hex or vice versa

One good source for ASCII to Hex charts is http://en.wikipedia.org/wiki/ASCII (both the tables below have been taken from this URL)

 

 

 

The need for typing in Hex codes into a URL is to make it possible to include special characters in a URL which would otherwise be wrongly interpreted or not allowed. A good example is SPACE which would not be able to fit into a URL in its original form and hence is represented by the Hex code 20 (prefixed by % in a URL making it %20)

 

For example, if we were to visit the URL www.bing.com , it could be written as

 

B =  %42

I = %49

N = %4e

G = %47

 

Hence, www.bing.com could be written as www.%42%49%4e%47.com

 

Note: The “slashes” in the address cannot be represented in hex; nor can the IP address be rendered using this logic (the %XX way) but the rest of the URL can be manipulated

Bookmark and Share

1 comment to Securing your URL with Hexadecimal codes