You DON'T need to uninstall Flash and you DON'T need to uninstall Safari. It's ridiculous to suggest getting rid of software completely, rather than learning how to use it properly.
When you're about to see a normal ad come up on a macrumors page or any wbsite, it displays it for second and then immediately changes it to one of these fake ads.
I use Flash on Safari with ClickToFlash to control which content plays, and I have zero issues with it. Generally speaking, Flash is notorious for consuming system resources, raising temps and decreasing battery life. For Flash-related issues:
- Find your Flash version and make sure it's the latest version available. Never install or update Flash from a pop-up on a website. Always go to Adobe's site to get Flash or updates.
- Install ClickToFlash (Safari), Flashblock (Firefox) or FlashBlock (Chrome) to control which Flash content plays on websites.
- Try using the YouTube HTML5 Video Player to watch YouTube videos, when available. (May impact fullscreen viewing. See link for details.) Some have reported better performance with HTML5, while some have reported worse. Try it and find out what works best for you.
For pop-ups and other ads, I run several ad-blockers.
ClickToFlash,
Safari AdBlock,
GlimmerBlocker and
JavaScript Blocker are just a few.
If you haven't already done so, try changing your DNS servers on your Mac and your router to OpenDNS servers, as
cyclotron451 suggested. This will show you how:
Why am I being redirected to other sites?
In Safari > Preferences > Security, make sure you have "Enable Java" UNchecked until you visit a trusted site that requires it. JavaScript is fine to leave enabled.
Delete all your Flash cookies from the following locations (locations may be somewhat different in ML):
/Users/
yourusername/Library/Preferences/Macromedia/Flash Player/
#SharedObjects/
/Users/
yourusername/Library/Preferences/Macromedia/Flash Player/macromedia.com/support/flashplayer/
sys/
After you have deleted all the content of those folders, you can right-click the folders indicated in red, Get Info, and check "Locked" to prevent other cookies from being stored.