webOS Nation Forums >  webOS apps and software >  webOS development > App Request: Adblocking in Browser
App Request: Adblocking in Browser

  Reply
 
LinkBack Thread Tools Display Modes
Old 08/21/2009, 10:32 AM   #21 (permalink)
webOS Enthusiast
 
Abyssul's Avatar
 
Join Date: Jul 2009
Posts: 2,132
Likes Received: 45
Thanks: 41
Thanked 807 Times in 433 Posts
Default

Why did I even bother posting my "how to"?
__________________


If I helped you or you have downloaded one of my files,
then least you could do is click the "Thanks" button.
Abyssul is offline   Reply With Quote
Thanked By: pajouh
Old 08/21/2009, 10:50 AM   #22 (permalink)
Member
 
Join Date: Jun 2009
Posts: 188
Likes Received: 4
Thanks: 19
Thanked 14 Times in 10 Posts
Default

I was about to request this. Glad I looked real fast first. I guess this would more be a tweak request than an app. But I think this will be great thanks Abyssul
Smubeht is offline   Reply With Quote
Old 08/23/2009, 03:38 PM   #23 (permalink)
webOS Enthusiast
 
Abyssul's Avatar
 
Join Date: Jul 2009
Posts: 2,132
Likes Received: 45
Thanks: 41
Thanked 807 Times in 433 Posts
Default

Quote:
Originally Posted by Smubeht View Post
I was about to request this. Glad I looked real fast first. I guess this would more be a tweak request than an app. But I think this will be great thanks Abyssul
No problem man.
__________________


If I helped you or you have downloaded one of my files,
then least you could do is click the "Thanks" button.
Abyssul is offline   Reply With Quote
Old 08/23/2009, 04:32 PM   #24 (permalink)
Member
 
K4p741nkrunch's Avatar
 
Join Date: Aug 2009
Posts: 187
Likes Received: 0
Thanks: 21
Thanked 48 Times in 32 Posts
Default

Abyssul thank you for the tip for luna-rescan! It's so much easier to install through ssh than use PreWare or WebOS Quick install and that luna rescan line is hard to memorize, thanks!
K4p741nkrunch is offline   Reply With Quote
Old 08/23/2009, 04:46 PM   #25 (permalink)
webOS Enthusiast
 
Abyssul's Avatar
 
Join Date: Jul 2009
Posts: 2,132
Likes Received: 45
Thanks: 41
Thanked 807 Times in 433 Posts
Default

Quote:
Originally Posted by K4p741nkrunch View Post
Abyssul thank you for the tip for luna-rescan! It's so much easier to install through ssh than use PreWare or WebOS Quick install and that luna rescan line is hard to memorize, thanks!
I just have it as a notepad file on my desktop. Then when I decide to start hacking away, I'll just open it up so I can copy and paste it anytime.

Don't forget the "Thanks" button. It's the least you could do,
__________________


If I helped you or you have downloaded one of my files,
then least you could do is click the "Thanks" button.
Abyssul is offline   Reply With Quote
Thanked By: K4p741nkrunch
Old 09/28/2009, 09:16 AM   #26 (permalink)
Member
 
Join Date: Apr 2009
Location: FL
Posts: 94
Likes Received: 0
Thanks: 43
Thanked 25 Times in 17 Posts
Default

Any reason not to use dnsmasq to block ads versus a hosts file?
DigitalNight is offline   Reply With Quote
Old 09/28/2009, 09:23 AM   #27 (permalink)
Legend
 
Jason Robitaille's Avatar
 
Join Date: May 2005
Location: Winnipeg, MB, Canada
Posts: 3,883
Likes Received: 496
Thanks: 801
Thanked 12,956 Times in 1,495 Posts
Default

Wow, how did I miss this thread!? So you guys confirm this trick works, right? If so, mind if I add this to a future version of WebOS Quick Install?
Jason Robitaille is offline   Reply With Quote
Old 09/28/2009, 09:28 AM   #28 (permalink)
Member
 
yokken's Avatar
 
Join Date: Sep 2009
Location: Minnesota
Posts: 41
Likes Received: 0
Thanks: 3
Thanked 16 Times in 3 Posts
Default

This is legit awesome. Now we just need a HOSTS file that contains everything inside of Adblock Plus' EasyList.
yokken is offline   Reply With Quote
Old 09/28/2009, 09:30 AM   #29 (permalink)
Legend
 
Jason Robitaille's Avatar
 
Join Date: May 2005
Location: Winnipeg, MB, Canada
Posts: 3,883
Likes Received: 496
Thanks: 801
Thanked 12,956 Times in 1,495 Posts
Default

I wonder if putting the address of the Palm context uploads in the file would prevent the phoning home the Pre does...
Jason Robitaille is offline   Reply With Quote
Old 09/28/2009, 09:34 AM   #30 (permalink)
Member
 
yokken's Avatar
 
Join Date: Sep 2009
Location: Minnesota
Posts: 41
Likes Received: 0
Thanks: 3
Thanked 16 Times in 3 Posts
Default

Quote:
Originally Posted by Jason Robitaille View Post
I wonder if putting the address of the Palm context uploads in the file would prevent the phoning home the Pre does...
It would prevent it from being able to phone home. This is the same method that one would use to prevent certain Adobe products from phoning home to activate, as well.
yokken is offline   Reply With Quote
Old 09/28/2009, 10:53 AM   #31 (permalink)
Member
 
Join Date: Apr 2009
Location: FL
Posts: 94
Likes Received: 0
Thanks: 43
Thanked 25 Times in 17 Posts
Default

I can confirm that both the HOSTS file and dnsmasq technique work. Adding it to the WebOS Quick Install would certainly make it easier to use/update.

To clarify about using dnsmasq, it is my understanding that it would require only blocking the root domain and not each sub-domain. For example, adding doubleclick.net would block any request to 1.doubleclick.net or 2.doubleclick.net etc whereas the HOSTS file would have to list each individually.
DigitalNight is offline   Reply With Quote
Old 12/05/2009, 10:44 AM   #32 (permalink)
Member
 
grndslm's Avatar
 
Join Date: Jan 2004
Posts: 2,874
Likes Received: 4
Thanks: 162
Thanked 217 Times in 143 Posts
Default

Bump FTW!
__________________

Get Homebrew Apps, Tweaks, & Patches Working In Less Than 5 Minutes

Cross-Platform Meta-Doctor Guide -- Bypass carrier-specific activation & MORE!
grndslm is offline   Reply With Quote
Old 12/05/2009, 11:02 AM   #33 (permalink)
Legend
 
Jason Robitaille's Avatar
 
Join Date: May 2005
Location: Winnipeg, MB, Canada
Posts: 3,883
Likes Received: 496
Thanks: 801
Thanked 12,956 Times in 1,495 Posts
Default

Quote:
Originally Posted by grndslm View Post
Bump FTW!
umm, if the bump want about adding it to WOSQI, just thought I should mention it's there in v2.9
__________________
If you've liked my software, please consider to towards future development.

Developer of many apps such as: WebOS Quick Install, WebOS Theme Builder, Ipk Packager, Unified Diff Creator, Internalz Pro, ComicShelf HD, LED Torch, over 70 patches and more.

@JayCanuck @CanuckCoding Facebook
Jason Robitaille is offline   Reply With Quote
Thanked by FischOderAal, Mhunterjr
Old 12/05/2009, 08:09 PM   #34 (permalink)
Member
 
Join Date: Jul 2009
Posts: 1,461
Likes Received: 115
Thanks: 64
Thanked 294 Times in 180 Posts
Default

Quote:
Originally Posted by Jason Robitaille View Post
umm, if the bump want about adding it to WOSQI, just thought I should mention it's there in v2.9
how exactly do we get to it?

edit: ok maybe i should have looked in the TWEAKS first...
Mhunterjr is offline   Reply With Quote
Old 12/05/2009, 09:55 PM   #35 (permalink)
Member
 
grndslm's Avatar
 
Join Date: Jan 2004
Posts: 2,874
Likes Received: 4
Thanks: 162
Thanked 217 Times in 143 Posts
Default

Quote:
Originally Posted by Jason Robitaille View Post
umm, if the bump want about adding it to WOSQI, just thought I should mention it's there in v2.9
I was actually bumping the concept of adblocking in /etc/hosts in such a manner. Very elegant trick.
__________________

Get Homebrew Apps, Tweaks, & Patches Working In Less Than 5 Minutes

Cross-Platform Meta-Doctor Guide -- Bypass carrier-specific activation & MORE!
grndslm is offline   Reply With Quote
Thanked By: Jason Robitaille
Old 12/06/2009, 04:06 PM   #36 (permalink)
Member
 
Join Date: Sep 2009
Posts: 463
Likes Received: 31
Thanks: 231
Thanked 49 Times in 36 Posts
Default

Wow! This is awesome! Although I'd prefer a webOS-App to do the updating
FischOderAal is offline   Reply With Quote
Old 01/05/2010, 01:46 PM   #37 (permalink)
Member
 
Join Date: May 2006
Posts: 150
Likes Received: 0
Thanks: 0
Thanked 7 Times in 5 Posts
Default

One problem with downloading random hosts files from the interwebs and plugging them directly into /etc/hosts without looking at them is that a malicious user could sneak entries in there for banks, shopping sites, paypal, etc. to phish passwords.

To prevent this from happening, you'll at least want to make sure whatever cron job you set up to periodically pull this file verifies that 127.0.0.1 is the only IP address listed in the downloaded file for & warns you if any other IP addresses are detected in it.
vga4life is offline   Reply With Quote
Old 03/25/2010, 06:42 PM   #38 (permalink)
Member
 
Join Date: Oct 2009
Posts: 24
Likes Received: 0
Thanks: 1
Thanked 3 Times in 1 Post
Default

Does anyone know how you could configure it to block everything except entries in your whitelist? As far as I can tell, using /etc/hosts to do this only works if you can keep the device from finding entries on its own, forcing it to pass everything through the hosts file.

How does the dnsmasq technique work? Would it support this type of blocking?

Lastly, do these types of filters affect the web browser application, or all internet requests?

Thanks for your help!
elyon is offline   Reply With Quote
Reply

 

Tags
ads, blocking, web browser

Thread Tools
Display Modes



 


Content Relevant URLs by vBSEO 3.6.0