• ATTENTION! As of November 1, 2020, you are not able to reply to threads 6 months after the thread is opened if there are more than 500 posts in the thread.
    Threads will not be locked, so posts may still be edited by their authors.
    Just start a new thread on the topic to post if you get an error message when trying to reply to a thread.
Status
Not open for further replies.

oggy

Occasional Visitor
AFAIK AB-Solution, or the way it uses Dnsmasq to block ads, has no impact on the wired or wireless operation of your router.


Use the Custom option when selecting a blocking file. You can populate it with any of the preset blocking files, then add or remove to your liking.
https://www.ab-solution.info/use/hosts-files.html
https://www.ab-solution.info/use/manual/main-menu.html

I did the custom option, I reached to the point where it asks me to choose 1-6 or 7-Empty file, at this point I don't know what to do.. Do I have to paste the url in or what?

Thanks again for your time.

Edit: I opened up WinSCP and went to /tmp/mnt/sda1/adblocking/custom_files and pasted my filter link in the custom_hosts_list.txt and it worked, I don't know if I did it correctly or not.
 
Last edited:

thelonelycoder

Part of the Furniture
I did the custom option, I reached to the point where it asks me to choose 1-6 or 7-Empty file, at this point I don't know what to do.. Do I have to paste the url in or what?

Thanks again for your time.

Edit: I opened up WinSCP and went to /tmp/mnt/sda1/adblocking/custom_files and pasted my filter link in the custom_hosts_list.txt and it worked, I don't know if I did it correctly or not.
After that, did you run u to update the blocking file?

I have not built in an editor for the Custom hosts list. I think this option is not used often and if so, then the user likely knows what he's doing.
 

oggy

Occasional Visitor
After that, did you run u to update the blocking file?

I have not built in an editor for the Custom hosts list. I think this option is not used often and if so, then the user likely knows what he's doing.

I did update after that and everything seems to be working fine. Thank u so much.
 

BeHappy

Occasional Visitor
Hello,
I have a problem using the Facebook app when I use blocking file option 4. When I install option 3 it's working fine. Do I need to add something to the whitelist?
 

thelonelycoder

Part of the Furniture
Hello,
I have a problem using the Facebook app when I use blocking file option 4. When I install option 3 it's working fine. Do I need to add something to the whitelist?
Use option f to find out what blocks it.
Sorry, but I am not going to install the Facebook app on any of my devices just to test it.
I have removed them long since from my mobile devices. They are a battery drain on the devices even if not active.
 

BeHappy

Occasional Visitor
Use option f to find out what blocks it.
Sorry, but I am not going to install the Facebook app on any of my devices just to test it.
I have removed them long since from my mobile devices. They are a battery drain on the devices even if not active.
OK, thanks. If anyone has already figure this out, please let me know.
 

superjet

Regular Contributor
If I wanted ab-solution to use a locally stored file as a custom host list... Could I potentially use the opkg version of lighttpd (on a different port) + a cronjob with curl + whatever awk,sed,grep,cut commands I choose serve the file from another ‘“server” running locally?

So in ab-solution the link to the “local” url woud look like:


Http://router.asus.com:81/adlist/foo.list
 

thelonelycoder

Part of the Furniture
If I wanted ab-solution to use a locally stored file as a custom host list... Could I potentially use the opkg version of lighttpd (on a different port) + a cronjob with curl + whatever awk,sed,grep,cut commands I choose serve the file from another ‘“server” running locally?

So in ab-solution the link to the “local” url woud look like:


Http://router.asus.com:81/adlist/foo.list
That's how I test it locally. One of my CentOS boxen hosts the local ab-solution.test domain.
It serves as the server for install, update and checks instead of the public ab-solution.info.

I also have a script run on it to download all hosts files I might use to test.
To do that yourself you can select the Custom blocking file. In it you place the link to any local source. Although only port 80 is supported as is and I have not tested any other ports, it might just work with a link like yours. But I doubt it, I probably would have to modify the script.
This way updates are pulled weekly with the blocking file update. Which you should. These hosts can change over time.
 

elorimer

Very Senior Member
Before we get to 2000 posts in this thread--100 pages!!:)
 

thelonelycoder

Part of the Furniture

Twiglets

Senior Member

superjet

Regular Contributor
That's how I test it locally. One of my CentOS boxen hosts the local ab-solution.test domain.
It serves as the server for install, update and checks instead of the public ab-solution.info.

I also have a script run on it to download all hosts files I might use to test.
To do that yourself you can select the Custom blocking file. In it you place the link to any local source. Although only port 80 is supported as is and I have not tested any other ports, it might just work with a link like yours. But I doubt it, I probably would have to modify the script.
This way updates are pulled weekly with the blocking file update. Which you should. These hosts can change over time.

Yessir, I use a pile of custom lists with that custom blocking file. List is over a million right now. IIRC the script doesnt allow for a local host file though, correct? it wont read from /foo/bar/directory/list but it will read from http://www.foo.bar/ldiretory/list.txt

I'm doing this in an attempt to consolidate all the lists on my git site. I very much appreciate how ab-solution + PS works but I pull from the lists my pi-holes push to github and they're not perfect for ABS because they've been trimmed since the pihole started using wildcard domains.

I've got a pihole vm right now on this computer at work im going to use as the upstream server for ABS to try to catch some of the domains that use proxy.bad.domain or error.bad.domain or the like.

So:
  1. pihole catches them due to wildcard,
  2. publishes the list of domains caught by the wildcard address
  3. ABS curls that list and appends it to the end of a list running on its ''local'' server on the second instance of lighttpd,
  4. weekly adds that to the blocking_file
  5. I clear the blacklist.txt
  6. open another pile of mobile apps,
  7. discover their unnecessary domains
  8. blacklist them
  9. start back at 1
Doing it that way I dont have to change the script at all for ABS or pihole and updates wont break any hack job I do to make it work temporarily

Code:
cat /tmp/mnt/data/adblocking/blacklist.txt | cut -f0 -d"#" | sed '/19
2.168.200.20/s#[1-9.]*#0.0.0.0#' >> /opt/share/www/list/cut-blacklist.txt | awk '!seen[$0]++' > /opt/share/www/list/cut-blacklist.txt

So that will take the blacklist.txt file in /tmp/mnt/data/adblocking/ remove comments, formatting and replace your ip address with one that is formatted properly to import into ab-solution. I'd use that because when im trying to clean up apps I routinely add 30-40 domains a day into the blacklist so it takes some time to scroll by

Code:
 echo http://your.ip.add.ress/list/blacklist-cut.txt >> /tmp/mnt/data/adblocking/custom_files/custom_hosts_list.txt

put that list in your custom_hosts_list file



add a cron job to run this 10 mins before ABS does its weekly update. 5 minutes before its weekly update cut the blacklist.txt file after the inital comments so you'll have a fresh blacklist to start the next week and all the previously blacklisted domains will be on a list already
 
Last edited:

thelonelycoder

Part of the Furniture
Yessir, I use a pile of custom lists with that custom blocking file. List is over a million right now. IIRC the script doesnt allow for a local host file though, correct? it wont read from /foo/bar/directory/list but it will read from http://www.foo.bar/ldiretory/list.txt
The update-hosts.add runs a wget for the file, which requires a web server to answer.
I'm doing this in an attempt to consolidate all the lists on my git site. I very much appreciate how ab-solution + PS works but I pull from the lists my pi-holes push to github and they're not perfect for ABS because they've been trimmed since the pihole started using wildcard domains.
Then trim the file to not include the wildcard domains, also push it to your github and include the raw file link in your AB Custom blocking file.
 

superjet

Regular Contributor
The update-hosts.add runs a wget for the file, which requires a web server to answer.

Then trim the file to not include the wildcard domains, also push it to your github and include the raw file link in your AB Custom blocking file.

The wildcard domains are a separate file in pihole.

My end goal is to script this, im just publicly posting how im going about everything:

in blocking_file already .baddomain.com
web page requests proxy.gotcha.baddomain.com
dnsmasq on asus router forwards proxy.gotcha.baddomain.com to upstream server
upstream filter catches proxy.gotcha.baddomain.com based on *.baddomain.com filter
upstream filter publishes list of hosts caught by *.baddomain and other *.domain filters
ab-solution wgets that extended list during its weekly update and proxy.gotcha.baddomain.com is in blocking_file less than a week later

Where it gets more complicated is that im adding to the lists manually as I update the specific blacklist created on the ac68u nd trying to incorporate those changes across several different devices and networks the same day.

It is very convenient to have 3 securecrt windows open,
one adding to the blacklist,
another tailing the log for already blocked domains and
the last one tailing the log for dns requests for a specific device.

The above post is mostly for my convenience keeping the manual blacklist short enough it doesnt take 20 seconds to roll by between additions.
Thank you for this amazing work of code.
 

thelonelycoder

Part of the Furniture
Who needs a change?
Well maybe AB-Solution does, with its startup and shutdown ASCII logo.

I have three types to choose from, with three variations. The top is the current logo.
Let me know what you think of these.

 

shooter40sw

Senior Member
Who needs a change?
Well maybe AB-Solution does, with its startup and shutdown ASCII logo.

I have three types to choose from, with three variations. The top is the current logo.
Let me know what you think of these.

I´d stay with the current or medium size no color... or maybe blue color (if it was an option).. well thats my humble opinion :D
 

Butterfly Bones

Very Senior Member
I'm happy with the current / small / no color, and so are my old eyes. ;)
 

thelonelycoder

Part of the Furniture
Looks like I'm in the minority with my ASCII logo preference.

I must say, it looks kind of ugly in code, with the upper being the current and the lower the same but with the white dash:

 

Raphie

Senior Member
Since the latest update i can no longer reach LinkedIn.com (can reach it over 4G or public wifi)
pinging routes to 108.174.10.10 it's not on Skynets of ABsolutions blacklists? any suggestions?
 
Status
Not open for further replies.

Latest threads

Sign Up For SNBForums Daily Digest

Get an update of what's new every day delivered to your mailbox. Sign up here!
Top