Now that a new DMCA exception was recently approved by the Library of Congress which specifically allows jailbreaking and therefore making it legal, the process of jailbreaking your iOS devices has been made easier than ever.
iOS hackers have released jailbreakme.com, a browser-based jailbreak utility for the Apple iPhone 4, 3GS, and 3G when running iOS 4 or 4.0.1. The jailbreak is reminiscent of one of the original jailbreaks for the original iPhone.
In addition to the above devices the jailbreak is compatible with an iPad running iOS 3.2 and 3.2.1 and an iPod touch 3G running iOS 4.0.
This jailbreak is simple to use, but before you start just be sure to sync and backup your device before hand. After you’ve verified a successful sync and backup browse to http://jailbreakme.com from Safari on your iOS based device to jailbreak it.