Home
Help
Search
Login
Register
OPNsense Forum
»
English Forums
»
General Discussion
»
[SOLVED] Block Ad-works and Advertising
« previous
next »
Print
Pages: [
1
]
Author
Topic: [SOLVED] Block Ad-works and Advertising (Read 14533 times)
neo243
Newbie
Posts: 48
Karma: 5
[SOLVED] Block Ad-works and Advertising
«
on:
September 09, 2015, 11:27:12 am »
Hi Guys is there a smart way to block these Advertising Networks?
Greetings Neo
«
Last Edit: October 15, 2015, 08:39:41 pm by franco
»
Logged
franco
Administrator
Hero Member
Posts: 17660
Karma: 1611
Re: Block Ad-works and Advertising
«
Reply #1 on:
September 10, 2015, 04:40:00 pm »
I'm using this as a proxy filter list:
http://pgl.yoyo.org/adservers/serverlist.php?hostformat=&showintro=1&startdate%5Bday%5D=&startdate%5Bmonth%5D=&startdate%5Byear%5D=&mimetype=plaintext
But a bit too often, pages don't work at all or load very very slowly.
Logged
neo243
Newbie
Posts: 48
Karma: 5
Re: Block Ad-works and Advertising
«
Reply #2 on:
October 15, 2015, 09:28:40 am »
thank you for your recommendation will try this.
Logged
anas_xrt
Newbie
Posts: 2
Karma: 2
Re: [SOLVED] Block Ad-works and Advertising
«
Reply #3 on:
November 02, 2015, 07:08:56 am »
Since it has squid inside we can do it precisely here.
1. goto services --> proxy server
2. look for Remote Access Control List tab
3. add new Remote Blacklist
4. put file name (any you like, I used adserver.txt)
5. put the URL
http://bit.ly/squidadserver
(it short url link to Yoyo Adserver project which the most up-to-date and committed to update daily) The link use the SQUID distdom_regex which this Opnsense Proxy server fully understand
)
6. Save changes
7. Test by goto any website with ads, you will see the Ads will be blocked and show the Squid error page instead. --> I have no time to do update my Squid error page to Blank Page, if some one can do and upload the instruction to update code would be very good.
8. Since Yoyo do daily update you can set the Schedule with Cron to do 24 hours update the Adserver list. So now to get upto date.
Hope you like as i do
My screen shot
Logged
neo243
Newbie
Posts: 48
Karma: 5
Re: [SOLVED] Block Ad-works and Advertising
«
Reply #4 on:
November 02, 2015, 02:13:59 pm »
thanks anas
anas for dummies do i need to enable my proxy and set it up on every client?
«
Last Edit: November 02, 2015, 04:31:15 pm by neo243
»
Logged
franco
Administrator
Hero Member
Posts: 17660
Karma: 1611
Re: [SOLVED] Block Ad-works and Advertising
«
Reply #5 on:
November 03, 2015, 08:10:48 am »
It depends on what you want to do. You can selectively set up clients to use the proxy explicitly (Firefox even has a per-Browser config), or you want to use the transparent proxy to proxy *all* clients without making them aware of the firewall setup.
Logged
neo243
Newbie
Posts: 48
Karma: 5
Re: [SOLVED] Block Ad-works and Advertising
«
Reply #6 on:
November 03, 2015, 08:28:05 am »
All Traffic what's going through the opnsense.
But it will need a high amount of resources right?
Logged
franco
Administrator
Hero Member
Posts: 17660
Karma: 1611
Re: [SOLVED] Block Ad-works and Advertising
«
Reply #7 on:
November 04, 2015, 07:55:04 am »
That's the downside, unless you want to tweak the redirect rule to only include certain hosts or subnets. You can do that with an alias for example.
Logged
anas_xrt
Newbie
Posts: 2
Karma: 2
Re: [SOLVED] Block Ad-works and Advertising
«
Reply #8 on:
November 04, 2015, 03:50:03 pm »
You can post the specification of your hardware and number of user sessions on the internet (estimate will do), then I can let you know whether it's enough to handle it or not.
Or, just try it yourself rightaway
I would rather go for transparent Proxy, that you could control ads on network.
@ your user will see the Squid error page on block ads instead.. I think your user prefers watching Ads rather than Squid error page LOL....
Actually the best way to block Ads is using DNS domain override. But it just has no one develop ACL list base on files/URL as it has done on proxy server. Otherwise, we all never need to worry about hardware resources and Squid error page.
Hopefully, OPNSENSE team would consider it.
Logged
Print
Pages: [
1
]
« previous
next »
OPNsense Forum
»
English Forums
»
General Discussion
»
[SOLVED] Block Ad-works and Advertising