Please select To the mobile version | Continue to access the desktop computer version

OrangePi

 Login            
 Register            
Search
Hot search: orangepi
12Next
Return to list New
View: 5796|Reply: 11

Hardware Adblocker

[Copy link]

1

Threads

4

Posts

22

Credits

Novice

Rank: 1

Credits
22
Post time 2016-3-31 15:13:16 | Show all posts |Read mode
We all know we watch things online that we shouldnt, and we all hate those annouting pop-up pages that try to advertise thigns that are no interest just so these sites can make money or Infect us with malware. Alot of people play games on their phones these days and generally use the free game rather than the paid for game which causes pop-up screens with adds shouwing up in them.
Myself included have tried the various AdBlockers you can download and use, but they tend to be prety rubbish for the most part and with another application on your computer/phone/device it is just another thing to run that is taking away from our processing power (small as it might be)

What im looking to do is create or adapt a bit of software that will turn the Orange PI into a Hardware AdBlocker.

What happens with this is that with the PI connected to the network (preferably via cable into the router) it will handly all requests within the network and filter out anything it identifies as an Advert preventing the call from being requested which will prevent the add from being loaded.

In theory not only will this prevent the add from being loaded but should also help to improve Network and Internet sleep by requesting less information that needs to be rendered. It will act as a sort of Firewall, but without being a firewall.
Single Polls, Total 23 Users voted
Your User group have no permission to vote
Post time 2016-3-31 15:51:42 | Show all posts
You have two options:
- use OrangePi as a router (with openwrt) and then filter the ads on the router (using dnsmasq, or iptables), but a better option is to just do it on the router.
- use OrangePi as a http-proxy, but then you have to configure all clients (desktop browser, android browers etc.) web-traffic through the OrangePi proxy.
Orange PI PC
Reply

Use magic Report

1

Threads

4

Posts

22

Credits

Novice

Rank: 1

Credits
22
 Author| Post time 2016-3-31 18:20:36 | Show all posts
What im planning is essentially a DNS server that will prevent requests from being sent for the adds, and as a result prevent things being loaded on the pages or where ever they are mean to show..
something like http://www.alternate-dns.com/ but a local hardware option. this will prevent the hassle of having to install things on devices and should speed up connection and internet.
yes you would have to configure the various devices you own or that connect but that shouldn't be a major issue. and i will of course provide a full guide on how to do it if i get it working right.

This wont be a proxy so nothing more than an ip address should need to be set for the Server and the same for the router.

This is at the moment just a concept but is based on a later more complex network idea where the router does the routing and various servers handle what ever they are designed to handle, and once i get my hands on a pi (at some stage) i will be able to see if this works properly..
Reply

Use magic Report

Post time 2016-3-31 21:02:16 | Show all posts
So, you neeed:
1. DNS server on OrangePi (install openwrt + dnsmasq)
more info:
https://forum.openwrt.org/viewtopic.php?id=35023

2. And also you have to change DNS server on every client in your LAN.
Orange PI PC
Reply

Use magic Report

1

Threads

4

Posts

22

Credits

Novice

Rank: 1

Credits
22
 Author| Post time 2016-3-31 23:39:04 | Show all posts
but will a standard DNS server thats on the router block content ? this will block content and allow the user to block additional content
Reply

Use magic Report

1

Threads

4

Posts

22

Credits

Novice

Rank: 1

Credits
22
 Author| Post time 2016-4-1 16:02:01 | Show all posts
what do you mean, the OPi sits inside or outside the network connected to the router?  and traffic goes thorough this before it hits the internet or visa versa ?it does sound interesting and could be a good route to go for this..

thanks
Reply

Use magic Report

11

Threads

75

Posts

376

Credits

Intermediate member

Rank: 3Rank: 3

Credits
376
Post time 2016-5-1 04:00:21 | Show all posts
for adblocking it's enougth to edit file "hosts" of your OS. that's all what you need to do for hardware adblocking.
just add there lines like

127.0.0.1  advertistment.server1.com
127.0.0.1  spam.server2.com

and so on

example:

127.0.0.1  1ad.de
127.0.0.1  1cash.net
127.0.0.1  192.com
127.0.0.1  1992.com.112.2o7.net
127.0.0.1  18clicks.com

.. etc
in unixes/android(/macos/ios ?) it is in the /etc , in the windows in the c:/windows/system32/drivers/etc
Reply

Use magic Report

0

Threads

47

Posts

1706

Credits

Gold member

Rank: 6Rank: 6

Credits
1706
Post time 2017-3-4 02:29:22 | Show all posts
Annoying advertisement - just another thing of capitalism issue.
We need to kill the main reason of advertisement
Kill the capitalism! Hello socialism!
Reply

Use magic Report

3

Threads

79

Posts

1016

Credits

Gold member

Rank: 6Rank: 6

Credits
1016
Post time 2017-3-4 02:51:44 | Show all posts
It seems a good idea but, you know about Pi-hole?

If so, what will be the differences betwen your adblock and the existing Pi-Hole adblock (https://pi-hole.net/?v=04c19fa1e772)?

Pi-hole can be installed in OPi, tested.
Reply

Use magic Report

3

Threads

163

Posts

6053

Credits

Forum patriarch

Rank: 8Rank: 8

Credits
6053
Post time 2017-4-4 15:30:11 | Show all posts
Edited by Tina at 2017-4-4 15:34

I do like the idea.
As the openWRT image is not usable at the moment as necessary USB software packages are not available to be downloaded (in LuCI under System/Software). Thus you cannot use the OPI as router for WAN in and LAN out (by using a USB to LAN adapter) nor it is not usable as router for mobile internet (USB tethering as WAN in and LAN out) nor with a USB modem.

It would be great to have the OPI as ad blocking router with the option to choose the tor exit node and full usb support ;)

There is a commercial project based on the banana pi called e-blocker, but it can only handle WAN in and WLAN out :/
Please click on reply when answering direct to me. That way I get a notification ;)

"Those who would give up essential liberty to purchase a little temporary safety deserve neither liberty nor safety."
                                  Benjamin Franklin 1755
Reply

Use magic Report

12Next
Return to list New
You have to log in before you can reply Login | Register

Points Rules

Archiver|Mobile edition|Darkroom|OrangePi En ( 粤ICP备14086627号-2

2019-8-26 00:09 GMT+8 , Processed in 0.034142 second(s), 24 queries .

Powered by Discuz! X3.2

© 2014-2015 orangepibbs en.

Quick Reply To Top Return to the list