Adblock for DD-WRT (version 2)

Post new topic   Reply to topic    DD-WRT Forum Index -> General Questions
Goto page Previous  1, 2, 3 ... 12, 13, 14 ... 21, 22, 23  Next
Author Message
Dr_K
DD-WRT User


Joined: 23 Mar 2018
Posts: 445

PostPosted: Thu May 03, 2018 0:54    Post subject: Reply with quote
Here I've been using your script flawlessly on two separate networks for some time now

Anctous to see what you saw needed fixed/updated!!

Only request is maby have update part of script rename old one like mabe amending the date to it instead of overwriting. For in the unlikely event I'd want to revert back. Or would that mess up the permissions of the script?....But that's just me being lazy...and over cautious

While I'm here... I have an older Samsxxx "?smart?" TV that connects to network but crys no internet while turning on when using script. I tried & failed isolating what site it wanted to see (it'soff site so trial&error became a nuisance) ... gave up by giving it a separate DNS

Not a big deal but if anyone has any valid suggestions...they'd be welcome

As always Thank You Yamaraj for sharing your great work

_________________
Location 1
R7800- DD-WRT v3.0-r53562 (10/03/23) Gateway
WNDR3400v1 DD-WRT v3.0-r35531_mega-nv64k (03/26/18 ) Access Point
WRT160Nv3 DD-WRT ?v3?.0-r35531 mini (03/26/18 ) Access Point
WRT54GSv5 DD-WRT v24-r33555_micro_generic (10/20/17) Repeater
Location 2
R7800- DD-WRT v3.0-r51855 (02/25/23) Gateway
R6300v2- DD-WRT v3.0-r50671 (10-26-22) Access Point
WNDR3700v2 DD-WRT v3.0-r35531 std (03/26/18 ) Access Point
E1200 v2 DD-WRT v3.0-r35531 mega-nv64k (03/26/18 ) Gateway(for trivial reasons)
RBWAPG-5HACT2HND-BE RouterOS-v6.46.4 (2/21/20) Outdoor Access Point
2x RBSXTG-5HPACD RouterOS-v6.46.4 (2/21/20) PTP Bridge 866.6Mbps-1GbpsLAN
Location 3
2x R7000- DD-WRT v3.0-r50671 (10/26/22) Access Points
2x RBWAPG-60AD RouterOS-v6.45.9 (04/30/20) PTP Bridge 2.3Gbps-1GbpsLAN
2x RBSXTsqG-5acD RouterOS-v6.49.7 (10/14/22) PTP Bridge 866.6Mbps-1GbpsLAN

Thank You BrainSlayer for ALL that you do & have done, also to "most" everyone here that shares their knowledge
Sponsor
Yamaraj
DD-WRT User


Joined: 25 Jan 2017
Posts: 110

PostPosted: Sun May 06, 2018 16:04    Post subject: Reply with quote
Dr_K wrote:
Only request is maby have update part of script rename old one like mabe amending the date to it instead of overwriting. For in the unlikely event I'd want to revert back. Or would that mess up the permissions of the script?....But that's just me being lazy...and over cautious


Done. Upgrade now.

Dr_K wrote:
While I'm here... I have an older Samsxxx "?smart?" TV that connects to network but crys no internet while turning on when using script. I tried & failed isolating what site it wanted to see (it'soff site so trial&error became a nuisance) ... gave up by giving it a separate DNS


Comment out lines 484 to 486 after upgrading. Add "#" without quotes before each line to comment them out. In a future revision I might add a switch to enable/disable smart TV ads and functionality.

ROLLING UPDATE: 20180506a2

1. The script now creates a backup of the current version before updating itself.
2. More lists added.


How to update if you are on 20180315 or later:
SSH into router
cd /jffs/dnsmasq
./adbhostgen.sh -u

If you are still using an older version, download https://raw.githubusercontent.com/m-parashar/adbhostgen/master/adbhostgen.sh into /jffs/dnsmasq and chmod +x it before running.

_________________

Routers
NETGEAR R7800 x2: DD-WRT v3.0-r42847 std (04/06/20)
NETGEAR R8500: DD-WRT v3.0-r41517 std (11/11/19)

Scripts
Adblock.sh on DD-WRT (v2) -- Github | Website
Ad-blocking on DD-WRT (v1) -- Github
0Legolas0
DD-WRT Novice


Joined: 14 Jan 2018
Posts: 16

PostPosted: Sat May 12, 2018 1:58    Post subject: ntp.pool.org Reply with quote
Hi Yamaraj
Looks like ntp.pool.org is getting blocked. I added it to my whitelist so my time can be updated.

Code:
root@NetgearAC1750_DDWRT:/jffs/dnsmasq# date
Sun Jan  4 02:26:15 PST 1970
root@NetgearAC1750_DDWRT:/jffs/dnsmasq# ntpclient pool.ntp.org
gethostbyname: Invalid argument
root@NetgearAC1750_DDWRT:/jffs/dnsmasq# vi mywhitelist
root@NetgearAC1750_DDWRT:/jffs/dnsmasq# ntpclient pool.ntp.org
Time updated.
root@NetgearAC1750_DDWRT:/jffs/dnsmasq# date
Fri May 11 18:57:16 PDT 2018
0Legolas0
DD-WRT Novice


Joined: 14 Jan 2018
Posts: 16

PostPosted: Fri May 25, 2018 0:28    Post subject: whitelist Reply with quote
Hi
The below two domains shouldn't be blocked. I have added them to "mywhitelist", but better in the original "whitelist"

evite.com
lifehacker.com

BTW, I use -2 Blitz level.

Thanks again
Yamaraj
DD-WRT User


Joined: 25 Jan 2017
Posts: 110

PostPosted: Fri Jun 01, 2018 21:10    Post subject: Re: whitelist Reply with quote
0Legolas0 wrote:
Hi
The below two domains shouldn't be blocked. I have added them to "mywhitelist", but better in the original "whitelist"

evite.com
lifehacker.com

BTW, I use -2 Blitz level.

Thanks again

I fixed Lifehacker a while ago. Just rolled out a whitelist update with evite. I may not always post here on time, but I always read the posts here and update as soon as possible. I also released a minor update to the script, so you can run it with -u to update to the latest alpha release.

_________________

Routers
NETGEAR R7800 x2: DD-WRT v3.0-r42847 std (04/06/20)
NETGEAR R8500: DD-WRT v3.0-r41517 std (11/11/19)

Scripts
Adblock.sh on DD-WRT (v2) -- Github | Website
Ad-blocking on DD-WRT (v1) -- Github
Yamaraj
DD-WRT User


Joined: 25 Jan 2017
Posts: 110

PostPosted: Fri Jun 01, 2018 21:17    Post subject: Reply with quote
Heads up!

I received this mail from GitHub only hours ago:

Quote:
Hi there,

We received word that one of your repositories contains sensitive information that you may not have intended to make public; specifically, the following internal domains in this file https://github.com/m-parashar/adbhostgen/blob/b516be4a3806e14ed57eeed4620f855973a56ca4/whitelist:

[list of Apple servers in the white list, redacted]

We wanted to give you a heads-up in case the information was published accidentally; however, due to the sensitive nature of this information, we may need to disable the repository as a precaution if changes are not made within the next week. If you need any help removing information that was committed by mistake, just let me know. We also have a handy guide here:

https://help.github.com/articles/remove-sensitive-data

Please make sure to follow those instructions carefully, as simply deleting the data will not remove it completely from the repository’s commit history.

Let me know if you have any questions and I'd be happy to help.

Thanks,
GitHub Support


They want me to not only delete this file but scrub the history clean to erase this sensitive information.

I am in contact with them, but as a protective measure, I will be hosting the files elsewhere, or at least just those whitelist entries they want removed.

In the meantime, I recommend that you go here: https://github.com/m-parashar/adbhostgen, click on the green "Clone or download" button and download a zipped copy of the entire repository.

The script is working and I will release an update with updated links before GitHub makes me edit or erase the file on their servers.

Best.

_________________

Routers
NETGEAR R7800 x2: DD-WRT v3.0-r42847 std (04/06/20)
NETGEAR R8500: DD-WRT v3.0-r41517 std (11/11/19)

Scripts
Adblock.sh on DD-WRT (v2) -- Github | Website
Ad-blocking on DD-WRT (v1) -- Github
Yamaraj
DD-WRT User


Joined: 25 Jan 2017
Posts: 110

PostPosted: Fri Jun 01, 2018 23:21    Post subject: Reply with quote
ROLLING UPDATE: 20180601a2

1. All Apple domains removed from the official whitelist and moved to a base64 encoded file which is downloaded, decoded, added to the whitelist every time the script is run.

2. The encoded file can be decoded with uudecode on any DD-WRT/Linux/Unix(-like) system and examined. Link for review: https://raw.githubusercontent.com/m-parashar/adbhostgen/master/whitelists/fruitydomains

Decode online here: http://decode.urih.com/data/

3. No changes in functionality despite the mail from Github.


How to update if you are on 20180315 or later:
SSH into router
cd /jffs/dnsmasq
./adbhostgen.sh -u

If you are still using an older version, download https://raw.githubusercontent.com/m-parashar/adbhostgen/master/adbhostgen.sh into /jffs/dnsmasq and chmod +x it before running.

_________________

Routers
NETGEAR R7800 x2: DD-WRT v3.0-r42847 std (04/06/20)
NETGEAR R8500: DD-WRT v3.0-r41517 std (11/11/19)

Scripts
Adblock.sh on DD-WRT (v2) -- Github | Website
Ad-blocking on DD-WRT (v1) -- Github
totbl
DD-WRT Novice


Joined: 01 Jun 2018
Posts: 29

PostPosted: Sat Jun 02, 2018 1:19    Post subject: Reply with quote
Hi there. This is such an awesome concept! I'm guessing it blocked PS4/XOne ads too?

Also, any way I can use a 2GB usb stick?
Yamaraj
DD-WRT User


Joined: 25 Jan 2017
Posts: 110

PostPosted: Sun Jun 03, 2018 5:00    Post subject: Reply with quote
totbl wrote:
Hi there. This is such an awesome concept! I'm guessing it blocked PS4/XOne ads too?

Also, any way I can use a 2GB usb stick?

Absolutely. 2GB is enough for /opt and /jffs. And yes, it should. There are four levels of protection, and barring a few annoying Javascript/canvas ads that can only be blocked at browser level, all the ads are blocked. Give it a try.

_________________

Routers
NETGEAR R7800 x2: DD-WRT v3.0-r42847 std (04/06/20)
NETGEAR R8500: DD-WRT v3.0-r41517 std (11/11/19)

Scripts
Adblock.sh on DD-WRT (v2) -- Github | Website
Ad-blocking on DD-WRT (v1) -- Github
totbl
DD-WRT Novice


Joined: 01 Jun 2018
Posts: 29

PostPosted: Sun Jun 03, 2018 7:26    Post subject: Reply with quote
Yamaraj wrote:
totbl wrote:
Hi there. This is such an awesome concept! I'm guessing it blocked PS4/XOne ads too?

Also, any way I can use a 2GB usb stick?

Absolutely. 2GB is enough for /opt and /jffs. And yes, it should. There are four levels of protection, and barring a few annoying Javascript/canvas ads that can only be blocked at browser level, all the ads are blocked. Give it a try.

Just got back from a delicious BBQ! And this is the second highlight of my night! Thanks for letting me know. I'm gonna give it a shot tomorrow.

I appreciate the response
totbl
DD-WRT Novice


Joined: 01 Jun 2018
Posts: 29

PostPosted: Sun Jun 03, 2018 21:05    Post subject: Status: Not mounted Reply with quote
Hi. So I'm getting Status: Not mounted.
Code:
Block device, size 1.868 GiB (2005925888 bytes)
DOS/MBR partition map
Partition 1: 951 MiB (997195776 bytes, 1947648 sectors from 2048)
Type 0x83 (Linux)
Ext2 file system
Volume name "jffs"
UUID 3ADFCFE8-68FB-D301-20CF-CFE868FBD301 (NCS)
Volume size 951 MiB (997195776 bytes, 973824 blocks of 1 KiB)
Partition 2: 480 MiB (503316480 bytes, 983040 sectors from 1949696)
Type 0x83 (Linux)
Linux swap, version 2, subversion 1, 4 KiB pages, little-endian
Swap size 480.0 MiB (503308288 bytes, 122878 pages of 4 KiB)
Partition 3: 481 MiB (504365056 bytes, 985088 sectors from 2932736)
Type 0x83 (Linux)
Ext2 file system
Volume name "opt"
UUID B2EC9FFE-68FB-D301-A0A4-9BFE68FBD301 (DCE, v13)
Volume size 481 MiB (504365056 bytes, 492544 blocks of 1 KiB)
Status: Not mounted


Any ideas?
Yamaraj
DD-WRT User


Joined: 25 Jan 2017
Posts: 110

PostPosted: Mon Jun 04, 2018 4:25    Post subject: Reply with quote
Yes. Reboot.
_________________

Routers
NETGEAR R7800 x2: DD-WRT v3.0-r42847 std (04/06/20)
NETGEAR R8500: DD-WRT v3.0-r41517 std (11/11/19)

Scripts
Adblock.sh on DD-WRT (v2) -- Github | Website
Ad-blocking on DD-WRT (v1) -- Github
totbl
DD-WRT Novice


Joined: 01 Jun 2018
Posts: 29

PostPosted: Mon Jun 04, 2018 4:55    Post subject: Reply with quote
Yamaraj wrote:
Yes. Reboot.

I have tried. Same issue. It's formatted correctly. I tried ext2 and 3.

I'm on Netgear WNDR3400 with the DD-WRT v3.0-r36079 mega build, as well. I'm going to try NTFS just to test.

Edit* Welp, NTFS mounted flawlessly. Not sure what's going on. I'm gonna try ext4 now.

Edit 2* ext4 says No mount, filesystem not supported.Or something like that.
ext 2 and 3 only say "Status: Not mounted"
Yamaraj
DD-WRT User


Joined: 25 Jan 2017
Posts: 110

PostPosted: Mon Jun 04, 2018 5:37    Post subject: Reply with quote
totbl wrote:
Yamaraj wrote:
Yes. Reboot.

I have tried. Same issue. It's formatted correctly. I tried ext2 and 3.

I'm on Netgear WNDR3400 with the DD-WRT v3.0-r36079 mega build, as well. I'm going to try NTFS just to test.

Edit* Welp, NTFS mounted flawlessly. Not sure what's going on. I'm gonna try ext4 now.

Edit 2* ext4 says No mount, filesystem not supported.Or something like that.
ext 2 and 3 only say "Status: Not mounted"

That's strange. PM me a screenshot of your Services -> USB page.

_________________

Routers
NETGEAR R7800 x2: DD-WRT v3.0-r42847 std (04/06/20)
NETGEAR R8500: DD-WRT v3.0-r41517 std (11/11/19)

Scripts
Adblock.sh on DD-WRT (v2) -- Github | Website
Ad-blocking on DD-WRT (v1) -- Github
totbl
DD-WRT Novice


Joined: 01 Jun 2018
Posts: 29

PostPosted: Mon Jun 04, 2018 5:46    Post subject: Reply with quote
Yamaraj wrote:
totbl wrote:
Yamaraj wrote:
Yes. Reboot.

I have tried. Same issue. It's formatted correctly. I tried ext2 and 3.

I'm on Netgear WNDR3400 with the DD-WRT v3.0-r36079 mega build, as well. I'm going to try NTFS just to test.

Edit* Welp, NTFS mounted flawlessly. Not sure what's going on. I'm gonna try ext4 now.

Edit 2* ext4 says No mount, filesystem not supported.Or something like that.
ext 2 and 3 only say "Status: Not mounted"

That's strange. PM me a screenshot of your Services -> USB page.


Done. The partitions aren't labeled in the image because I was just quickly testing. Not sure if that matters but it wouldn't mount with the correct labels either.
Goto page Previous  1, 2, 3 ... 12, 13, 14 ... 21, 22, 23  Next Display posts from previous:    Page 13 of 23
Post new topic   Reply to topic    DD-WRT Forum Index -> General Questions All times are GMT

Navigation

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum