We have moved to a new Sailfish OS Forum. Please start new discussions there.
8

Ad Blocker for Sailfish Browser? [answered]

asked 2016-09-22 02:09:06 +0300

DarkTuring gravatar image

updated 2016-10-28 21:57:43 +0300

What is the preferred way to block advertisement in the sailfish browser. I believe it would go a long way in speeding up page load times not to mention improve privacy by using the browser on which so much of the Jolla experience hinges. Am using sailfish 2.0.3.14

Cheers

edit retag flag offensive reopen delete

The question has been closed for the following reason "the question is answered, an answer was accepted" by nthn
close date 2016-09-25 14:05:18.268473

Comments

removed the how-to tag, because that is for 'questions' explaining how to explain how to reach a goal .

Tanghus ( 2016-09-26 01:06:19 +0300 )edit

even faster blocking way Blocking using proxy

DarkTuring ( 2016-10-12 19:57:02 +0300 )edit

2 Answers

Sort by » oldest newest most voted
12

answered 2016-09-22 07:51:03 +0300

eson gravatar image

updated 2016-09-22 07:55:43 +0300

In my opinion the smoothest solution is to use Hosts file. You could either do it in terminal, or you could go the easy way and use nodevels solution from Warehouse.

Of course, you don't have to use MVPS Hosts file, there are other ready made Hosts files out there, or you could maintain your own.

edit flag offensive delete publish link more

Comments

i like that option i did adjust the hosts.txt myself - the only problem would be that you have to do that periodically. There is a hosts_editable.txt file in the systems/etc folder. Is it possible to load other DNS addresses to block into that file periodically. Does it append any change from the edit file? Meaning would i only load the additional filters i want into the edit file or do i need to whole host list?

DarkTuring ( 2016-09-22 10:54:42 +0300 )edit

First of all... it's not "hosts.txt", hosts file should never have a file extension to work. Just "hosts" is the proper name.

About the hosts.editable, I'm not sure what that file is for. Can't find any info at all about it. Personally I've been using MVPS Hosts file for many years and found it very satisfactory. Occasionally I add my own needed filters.

eson ( 2016-09-22 11:43:40 +0300 )edit
1

You can use hosts.editable to add your own rules which don't get overwritten by updates to hosts.

nthn ( 2016-09-22 16:11:32 +0300 )edit
1

Thanks @nthn. Very useful. Do you know where to find more info about it?

eson ( 2016-09-22 16:51:27 +0300 )edit

nodevel wrote it on the page for the application on OpenRepos!

"Your own rules are preserved and you can still edit them and add new ones by editing /etc/hosts.editable file. Mind that for your changes to come to effect, you need to re-run update_hosts_adblock"

nthn ( 2016-09-23 19:12:52 +0300 )edit
1

answered 2016-09-25 02:54:17 +0300

DarkTuring gravatar image

updated 2016-09-25 03:09:41 +0300

  1. hosts.txt

First download file and in download folder change name to hosts.editable

Thank you all for the input. Based on the script i compiled the hosts.editable file DNS blocker which you copy using the terminal and after activating su-devel mode:

cv -i /home/nemo/android_storage/Download/hosts.editable /system/etc/

When it asks you to overwrite you type 'y' then enter. Your hosts.editable file should now be 2MB instead of 25Byte.

Then restart, run any programs that update your hosts file again and you should be all set.

My hosts file is cleaned up IP 0.0.0.0 one space, no comments and no pointing to itself, no empty lines. The file should be attached here.

edit flag offensive delete publish link more

Question tools

Follow
4 followers

Stats

Asked: 2016-09-22 02:09:06 +0300

Seen: 1,408 times

Last updated: Sep 25 '16