I know that many websites need advertising in order to exist. A lot of websites have offensive ads like porn on their sites and if you want to block those, I suggest 2 programs: Adblock & Adblock Pro. They are both freeware, and the versions that I use are for Firefox. There might be versions that work with other browsers so I might be worth checking.

Both are highly recommended.