General System wide adblocking for non JB devices

Dirtysand

macrumors member
Original poster
Feb 10, 2014
55
0
Link 1: http://yourjavascript.com/2404043101/sfp0yx.js
Edit:Links 2~4 all dead, exceeded download limit. This link sends ad data to 8.8.8.8.
(all identical, to prevent file from expiring, just pick ONE link)
=============
Using 127.0.0.1:8021(aka localhost instead of 8.8.8.8, should be faster if it works)***
Link 5: http://yourjavascript.com/3043431117/sfp0yx.js
Which may or may not work for you. Depending if the port is open or not. IF it does not work, just use something like fling/Sys Status to find an open port on local host for your device, and edit the pac file using a text editor***
=============
Thought I might share it. Needs more people to host it. Takes a while to take effect.
Here is a PAC (Proxy Auto Config) file for system wide adblocking on iOS. It blocks in app ads, safari ads, hulu ads, pandora ads, and tracking. It was created using Weblock.

To use it, just open up wifi settings, and click HTTP PROXY, go to auto, and paste the link. Close every app, and when you re-open them, it's ad-less.

What it does is every time your iDevice requests the ad-server for an ad, it instead sends it to 8.8.8.8(a DNS server owned by google), which discards the request.
Other connections are not sent to 8.8.8.8.

If you do not want the data to ever leave the device, you can give the link 5 a shot.
Known issues: Yahoo mobile doesn't not work properly.
 
Last edited:

Dirtysand

macrumors member
Original poster
Feb 10, 2014
55
0
Oh yea, I forgot to mention, it works for wifi only, and you need to set it individually for each network.
 

laudern

macrumors 6502a
Jan 5, 2011
863
551
I can't figure out where to put this on my routers settings. Im using a Dlink GT604T.

Any help?
 

HarryT

macrumors 6502
Mar 21, 2013
457
67
This is awful.

You are taking away revenue from Developers who rely on these ads to make a living.

The months that a dev goes to producing an app with the business model of using ads to generate revenue is then just totally destroyed by something like this.

Morally wrong on all levels. :mad:
 

Dirtysand

macrumors member
Original poster
Feb 10, 2014
55
0
This is awful.

You are taking away revenue from Developers who rely on these ads to make a living.

The months that a dev goes to producing an app with the business model of using ads to generate revenue is then just totally destroyed by something like this.

Morally wrong on all levels. :mad:
You could argue that, or you could also argue that collecting app usage data without user consent is something morally wrong and should not be done. As a user, what happens to devs don't really affect me. If you feel generous by viewing ads in an app, then this is not for you.
 

YanniDepp

macrumors 6502
Dec 10, 2008
488
37
This is awful.

You are taking away revenue from Developers who rely on these ads to make a living.
If ads were just little images that appeared on my screen, and took me to a web page when I touched them, I wouldn't block them.

But they're not. For the past few months, ads in web pages and apps have been detecting iOS devices and throwing malicious JavaScript redirects at them.

Have you ever browsing the web or using an app, and suddenly the app (or Safari) slides off the screen, and you're looking at some random app in the App Store? It's usually Candy Crush, Jelly Splash of Clash of Clans. That's one of these redirects.

Yesterday, I was thrown out of the same app 3 times within 5 minutes, and my phone took me to Clash of Clans in the App Store. It's very disruptive and annoying, and I won't put up with it. How dare someone decide it's OK to stop me doing what I'm doing on my own phone/tablet, just so they can make a few cents.

As long as these ads keep appearing, I will block ads on all my iOS devices. I will not feel bad about it.
 

Nyy8

macrumors 6502a
Jun 12, 2011
510
126
New England
Normally I wouldn't care about ads, but when they start redirecting me to the app store (Like YanniDepp said), that's when I call intrusive and unacceptable as far as ads go.
 

YanniDepp

macrumors 6502
Dec 10, 2008
488
37
Before anyone says "I haven't seen this happening. Ads can't magically redirect you. You must be touching the screen by accident."

I'm a software developer with half an ounce of intelligence. I'm definitely not interacting with any ads. And here's a screenshot of the JavaScript redirect that makes the App Store open: http://m.imgur.com/LwUF1Sq
 

C DM

macrumors Sandy Bridge
Oct 17, 2011
48,398
17,016
Before anyone says "I haven't seen this happening. Ads can't magically redirect you. You must be touching the screen by accident."

I'm a software developer with half an ounce of intelligence. I'm definitely not interacting with any ads. And here's a screenshot of the JavaScript redirect that makes the App Store open: http://m.imgur.com/LwUF1Sq
Oh, it definitely happens and is known with a few threads on it that have been going on.
 

FatPuppy

macrumors 68000
Jul 14, 2012
1,707
149
Link 1: http://yourjavascript.com/2404043101/sfp0yx.js
Link 2: http://filebin.ca/1EwT334W17Qg/SFP0YX.js
Link 3: http://filebin.ca/1EwUy0HpAQfr/SFP0YX.js
Link 4: http://filebin.ca/1EwV6kITd7UJ/SFP0YX.js
(all identical, to prevent file from expiring)
Thought I might share it. Needs more people to host it.
Here is a PAC (Proxy Auto Config) file for system wide adblocking on iOS. It blocks in app ads, safari ads, hulu ads, pandora ads, and tracking. It was created using Weblock.

To use it, just open up wifi settings, and click HTTP PROXY, go to auto, and paste the link. Close every app, and when you re-open them, it's ad-less.

What it does is every time your iDevice requests the ad-server for an ad, it instead sends it to 8.8.8.8(a DNS server owned by google), which discards the request. 127.0.0.1 does not work.
Other connections are not sent to 8.8.8.8.
Known issues: Yahoo mobile doesn't not work properly.

Hi, how do I paste all the links? When I go to proxy auto, I can only put one URL, the only way to add more is just paste every link one after one with no space.
 

Dirtysand

macrumors member
Original poster
Feb 10, 2014
55
0
Hi, how do I paste all the links? When I go to proxy auto, I can only put one URL, the only way to add more is just paste every link one after one with no space.
Just randomly pick ONE, they're all identical to prevent the file from going offline.
 

Dirtysand

macrumors member
Original poster
Feb 10, 2014
55
0
Although Weblock's official page states that you cannot use 127.0.0.1 as a destination for ad related traffic, it's not completely true. On my ios 7.1 device, I was able to set the destination to 127.0.0.1:8021 It noticeably sped up the page loading after using this PAC file. You might want to using something like Fling or Sys status to find an open port on local, and modify the PAC file using a text editor and re-upload it to suit your needs.

Crap, link 2~4 are all dead now. Exceeded the 1000 download limit.
 
Last edited:
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.