Ad blocker for Windows 10 Mobile

Status
Not open for further replies.
Oct 26, 2017
13
3
0
@stefano.balzarotti, it's a good idea! I'm unsure about possibility to process redirects to localhost on W10M platform (AFAIR, there was some platform limitations) but will do some research.
I don't think it's possible to setup a webserver on phone, even if it's possible is not a good idea.
Maybe a better idea is to redirect all requests to a real host that can handle every type of request and respond with a 404 and cache headers.
Not performant as a localhost, but better to wait the timeout.
 

sensboston

Recognized Developer
Nov 18, 2009
2,142
797
193
Boston, MA
Theoretically, if you have no HTTP port (port 80) listener (i.e. web server isn't running on device), there will be no any timeouts at all. So, after some thought, your idea isn't good. In your specific case, probably, you have something running on your local host (web server, spyware, rootkit, whatever...) and listening port 80 of 127.0.0.1, what's why you have timeouts.

P.S. I wrote some nonsense above (same as you, @stefano.balzarotti !). 127.0.0.1 it's a loopback interface; of course, where was absolutely NO "timeouts" to redirecting HTTP request to this interface! So, you should check your Windows PC (or, better, to reinstall Windows) if you have some troubles with redirection to localhost!

And "AdBlocker" is working absolutely correct, no future modifications needed. If anyone have a troubles with "AdBlocker", it's not an "AdBlocker" issue but your phone issue (or rather consequences of mindless editing the registry).
 
Last edited:
  • Like
Reactions: stefano.balzarotti
Oct 26, 2017
13
3
0
You're are right, I identified my problem, on my PC I installed IIS that listen on port 80 and if there aren't listening websites, the requests fails with 404.
If I shutdown IIS all works correctly (no timeouts).
But I found another issue, if the port 80 is free and you start skype, skype also listens to port 80 as default, this can be changed in settings.
On phone, is different, in fact I had a webserver installed, if you enable the developer portal and remote diagnostic from developer menu.

The app works perfectly as it is, thanks :) .
 

sensboston

Recognized Developer
Nov 18, 2009
2,142
797
193
Boston, MA
Hi guys, it's a kinda offtopic but... JFYI, only 1 (one!) person is donated for "AdBlocker" (with the almost 2K downloads!) but it's OK ;)

But you can provide your appreciation by installing my new extension for Google Chrome (desktop version), HTML5 Video Autoplay Blocker and rated it "5 stars". Good feedback is also appreciated.

This extension blocks autoplay for HTML5 video tag on web-sites and it's pretty useful and simple.

There are only two working extensions at the Chrome web store for that purpose but mine has a "white list" feature (where you can add domains to exclude), and adjustable overlay (instead of ugly red banner on top of the video).
 
Last edited:

Redshift2

Member
Dec 27, 2014
38
3
28
lumia 730, windows mobile 10 15254.1
phone was interop unlocked via this
https://forum.xda-developers.com/wi...creg-lumia-reg-editor-interop-unlock-t3451723

i cant revert back to original hosts and disable ad blocking ,when i press revert hosts, app it states that is done but i when i check the hosts nothing is changed

also when i use the update hosts and disable ad blocking ,app states its done ,i can see the hosts but when i use tube hd app i can see ads at he bottom of the app
https://www.microsoft.com/el-gr/store/p/tube-hd-best-client-for-youtube/9wzdncrcvlfg
 

dxdy

Senior Member
Apr 17, 2008
5,040
2,106
0
47
www.red-gsm.net
lumia 730, windows mobile 10 15254.1
phone was interop unlocked via this
https://forum.xda-developers.com/wi...creg-lumia-reg-editor-interop-unlock-t3451723

i cant revert back to original hosts and disable ad blocking ,when i press revert hosts, app it states that is done but i when i check the hosts nothing is changed

also when i use the update hosts and disable ad blocking ,app states its done ,i can see the hosts but when i use tube hd app i can see ads at he bottom of the app
https://www.microsoft.com/el-gr/store/p/tube-hd-best-client-for-youtube/9wzdncrcvlfg
check interop tools and interop unlock again if you cant revert...

if you see adds, then is simple explanation: no adblock data in database.... add it manually, or try read few post on first page ;)
 
Last edited:
  • Like
Reactions: Redshift2

LuKePicci

Member
Apr 30, 2014
22
5
3
I'm quite worried about the redirection to 127.0.0.1 in case Device Portal is enabled. Does it mean that a website containing, let's say, a frame to ad content will throw ssl certificate flags error for any request? Also, is any non-https request be redirected to https since http to https redirection is enabled by design for the Device Portal? What could happen if Device Portal is enabled with no authentication?

Second question, about the wifi connectivity delay. Maybe default hosts file contains some domain typically used for ncsi purpuses. Have anybody spent some time investigating this?
 

Redshift2

Member
Dec 27, 2014
38
3
28
check interop tools and interop unlock again if you cant revert...

if you see adds, then is simple explanation: no adblock data in database.... add it manually, or try read few post on first page ;)
i reapplied the interop unlock and everything is working now, thanks

how can i prevent extras & info app from receiving updates?
 

sensboston

Recognized Developer
Nov 18, 2009
2,142
797
193
Boston, MA
I'm quite worried about the redirection to 127.0.0.1 in case Device Portal is enabled. Does it mean that a website containing, let's say, a frame to ad content will throw ssl certificate flags error for any request? Also, is any non-https request be redirected to https since http to https redirection is enabled by design for the Device Portal? What could happen if Device Portal is enabled with no authentication?
Don't worry: 127.0.0.1 it's a very special IP address for the network loopback interface, it can NOT be used by any server.

Second question, about the wifi connectivity delay. Maybe default hosts file contains some domain typically used for ncsi purpuses. Have anybody spent some time investigating this?
Huge WiFi delay depends from the number of lines in the HOSTS file, probably because of ineffective code. What's why I commented HOSTS file from github source in the latest release.

P.S. By the way, while posting your questions here, you expecting to get some answers, right? But WHY NO ONE ISN'T reading what I'm posting here?! I asked one damn simple thing: download & rate my free extension for Google Chrome but NO ONE DID (I still have only 4 ratings from my friends and daughter). Maybe will be better to remove for the God sake any free download from this thread, and provide a copy only for people who has some appreciation to developer (with the proof of course)?..
 
Last edited:

augustinionut

Senior Member
Apr 21, 2015
1,549
203
83
Don't worry: 127.0.0.1 it's a very special IP address for the network loopback interface, it can NOT be used by any server.


Huge WiFi delay depends from the number of lines in the HOSTS file, probably because of ineffective code. What's why I commented HOSTS file from github source in the latest release.

P.S. By the way, while posting your questions here, you expecting to get some answers, right? But WHY NO ONE ISN'T reading what I'm posting here?! I asked one damn simple thing: download & rate my free extension for Google Chrome but NO ONE DID (I still have only 4 ratings from my friends and daughter). Maybe will be better to remove for the God sake any free download from this thread, and provide a copy only for people who has some appreciation to developer (with the proof of course)?..
I give it 5....dont lie, please.
 

LuKePicci

Member
Apr 30, 2014
22
5
3
I know how the loopback interface works. But what happens if a web page incudes a frame to adseverywhereexample.com and this domain is in the hosts and Device Portal is enabled?
Why not using 0.0.0.0 instead?
-----------------------------------------------
Sounds a bit strange, what you experienced to argue it is a hosts file size problem and not something else?
-----------------------------------------------
BTW I use Edge, bring your useful extension to Edge and I'll rate all you want.
 
Last edited:

LuKePicci

Member
Apr 30, 2014
22
5
3
Good news, I replaced the default hosts file loaded from github with this one http://winhelp2002.mvps.org/hosts.htm It uses 0.0.0.0 in place of the local loopback address so no connection take place in case the Device Portal is enabled. As a plus, it seems that the replaced hosts file does not cause any delay on wifi connection. Don't ask how, maybe it is nor so large or may be it does not block any relevant hostname used for connection status checking.
 

LuKePicci

Member
Apr 30, 2014
22
5
3
So many windows mobile blogs suggest users to install this nice app from device portal. This means most people have device portal enabled even if they're not so experienced users. I think that avoiding a lot of ad hosts to be redirected to the device portal is nice, at least from a security point of view.
 

eugene_flash

New member
Mar 7, 2018
1
0
0
sensboston ,
I have an error when starting your app - "The system cannot find the file specified. (Excep_FromHResult 0x80070002)".
I can download blocklists but I can't see contain of the current hosts file through app and nothing blocks.
My phone is unlocked with WPInternals and I did "Interop/Cap Unlock" + "New Capability Engine Unlock". Whats wrong?
 
Status
Not open for further replies.