Once again: Once you all understand the problem, solving it is easy:
The problem is: embedded in rss links coming in from other sites. These rss links , think of them like this: if you were watching national news on your tv and all of a sudden you got a interruption in your national news broadcast on tv from a local tv station telling you that something in ur local region is happening right now and we're taking u to it and all of a sudden u are now watching ur local event on tv, however, as long as u change to another channel u can watch something else. But if u return to ur national news channel u will constantly see this local broadcast instead of ur national news show.
this is exactly what is happening with this candy game issue: u go to a site u always have been going to, and use to go to without issue and when u clicked on a article to read no problem. Now when u do so u get redirected to app store to buy this idiotic candy game. The reason being is that when u clicke on the link to read that article it has some rss (feed/link from some indepenent site, nothing to do with the site u r on itself) feed or link embedded in it - coming from anywhere in the world other than from the site u are on itself. That is why it has nothing to do with data on your phone - removing it, restoring it, etc. As soon as u go back to this site, this embedded link will find its way back to redirect u as soon as u click on a article to view.
This is also why its happening on all smartphones, not just on iphones. And why no vender is responsible or can do anything about it - i.e not at&t, not verizon, not sprint. Also, this is why the site u actually go to before u get redirected can't do anything about it.
Now that u understand the problem we can solve it easily: how ? okay, think about it - anytime u install social networking such as facebook, twitter, or games (from "games for friends"), there is a chance that it will embed a link - and it will not be removed by a restore or by removing all your data, somehow it remains within the context the app itslef (think of the app as the national news station in my example above).
So- now u know what to do without me having to tell u, but I will anyways: all u have to do is hook up ur iphone to itunes and thru itunes, click on ur iphone, click on the app tab for ur iphone, and click remove for any of the social networking apps u currently have on ur iphone such as facebook, twitter, etc. : REMOVE THEM ALL.
Next, remove all games, every single one: REMOVE ALL GAMES.
Remember, doing this from ur iphone alone is not enough, you MUST connect ur iphone to itunes, select ur iphone and REMOVE these apps from ur iphone app tab.
This will clear out all of the apps embedded links stuck somewhere in ur iphone. (Like my above example, u have gotten rid of the local news that interrupted ur national news show)
1. Then on ur iphone click on settings, general, safari, remove history, remove all cookies and data
2. Then scroll all way down, click on advanced, click on website data, click on remove all website data
3. Then under settings, general, about, scroll all way down, click on advertising and click limit ad tracking to ON,
and click reset advertising identifier (this is telling the iphone to not allow adtrack adds such as king.com and to give u a new id that is not identifiable by these adtrack ads - so its harder for them to attack ur phone.)
4. Now go to safari, go to bookmarks, make sure all history is cleared.
5. Now go to settings, icloud, click safar to OFF if set to ON
That should do it, u are now clear of this idiotic adtrack redirection issue.
Cheers.
Charlie.
ps turning off javascript is too draconian, yes it will work, but its preventing u from using safari the way u should be using it and most of its functionality at sites will not be avalailable. U might as well not surf at all. It's not the real answer, it is just a stop gap for u to stop ur frustration of constantly being redirected to this game.