Microsoft Laptop

  • Subscribe to our RSS feed.
  • Twitter
  • StumbleUpon
  • Reddit
  • Facebook
  • Digg

Saturday, 14 September 2013

How to block advertisement using OpenWRT

Posted on 08:22 by Unknown
This is how I block advertisement at DNS level on OpenWRT.
Blocking at DNS level is advisable because it does not impact bandwidth and latency.
Simply said it tricks your computer that your loopback address is where adserver are located but cannot be found so adservers are ignored totally.
AdServers are becoming more and more of a nuisance.
  1. They serve up malware advertisement, 
  2. They load flash advertisements which waste bandwidth and increase latency. 
  3. They run javascripts to try and "take over" your web browser via redirection and popups.
If you run adblocker on client computers it becomes harder to manage when the number of client systems increase.
Fortunately OpenWRT makes this easy with the use of dnsmasq.
My web surfing experience has since greatly improved since
Here is how to do it in 2 steps(Yes it is that simple and powerful with Linux):
  1.  SSH into your router
  2. Copy and paste this Command into the terminal
wget -O /etc/dnsmasq.conf "http://pgl.yoyo.org/as/serverlist.php?hostformat=dnsmasq&showintro=1&startdate[day]=&startdate[month]=&startdate[year]=&mimetype=plaintext" && /etc/init.d/dnsmasq restart

What this script does is telling your Router to http://pgl.yoyo.org/adservers/ to get a list of known adservers in a dnsmasq friendly format and save it to /etc/dnsmasq.conf if that command is successful then restart dnsmasq.

After that you will soon notice the disappearance of many irritating advertisement when using the web .
Hopefully this improves your web surfing experience as well as let you realise and embrace the power of shell scripting.
Read More
Posted in | No comments
Newer Posts Older Posts Home
Subscribe to: Posts (Atom)

Popular Posts

  • Network Adapter Properties
    802.1p QOS The "802.1p QOS" parameter is a standard that enables Quality of Service (QoS). It is responsible for the QoS provision...
  • Configuring Pure-FTPd with TLS on OpenWRT
    This is a simple guide to configuring Pure-FTPd on OpenWRT which is available on the TP-Link WR1043ND OpenWRT Image I compiled. Pure-FTPd i...
  • A Simple How to use MiniDLNA on OpenWRT
    SSH/Telnet into the Router The configuration file is located at /etc/config/minidlna The database file is located at /var/run/minidlna/files...
  • K10STAT AMD Griffin Processor UnderVolting Guide
    FAQ Why UnderVolt? Because when a lower voltage can sustain your clockspeed, a stress tested undervolt will preserve battery life a...
  • OpenWRT Built for TP-Link WR1043ND
    PLEASE READ THIS POST COMPLETELY TO PREVENT ISSUES WITH YOUR ROUTER What this firmware does This firmware aims to be an opensource replaceme...
  • Hacking TP-Link WR1043ND Part 1
    This is a series of blog post detailing about how to hack the TP-Link WR1043ND to maximize its potential. I will try to be as noob friendly ...
  • Acer Aspire 4740G Review
    There is 1 confirmed bug on the Acer Aspire 4740/4740G Insyde EFI Firmware. Bug 1: DEP is disabled due to firmware bug . This will have po...
  • How to Mod your Laptop VGA BIOS
    Basically there are 2 locations where the VGA BIOS in laptops. Some OEMS embed the VGA BIOS in the EFI/BIOS in your laptops, other OEMs have...
  • OpenWRT TL-WDR3600/4300/4310 Release
    Finally after some testing and being quite satisfied by the results I release the firmware for TL-WDR3600/4300/4310. Although they seemed li...
  • Fix For Acer Aspire 4530 AMD-V BIOS Bug
    I thought that it was time to address some issues with Aspire 4530. It bugs me that there is a bug in the BIOS with regards to Acer Aspire 4...

Categories

  • 32bit
  • 64bit
  • acer
  • ahci
  • amd
  • apple
  • aspire 4530
  • aspire 4535G
  • aspire 4740
  • atheros
  • atom
  • BIOS
  • boot
  • cleanup
  • configure
  • device
  • disk
  • dismantle
  • download
  • driver
  • fan control
  • firefox
  • firewall
  • firmware
  • fix
  • flash
  • graphics
  • hwmonitor
  • internet
  • linux
  • macs
  • microsoft
  • modified
  • nvidia
  • optimize
  • overclock
  • performance
  • power savings
  • powermizer
  • proxy
  • ram
  • Realtek
  • review
  • secure
  • shortcut
  • speaker
  • synaptics
  • temperature
  • theme
  • timeline
  • tweak
  • undervolt
  • update
  • wallpaper
  • windows 7
  • windows vista
  • Windows Xp
  • winsat
  • wlan

Blog Archive

  • ▼  2013 (10)
    • ►  November (2)
    • ►  October (3)
    • ▼  September (1)
      • How to block advertisement using OpenWRT
    • ►  August (1)
    • ►  July (1)
    • ►  May (1)
    • ►  January (1)
  • ►  2012 (4)
    • ►  September (1)
    • ►  June (1)
    • ►  March (1)
    • ►  February (1)
  • ►  2011 (21)
    • ►  September (1)
    • ►  July (4)
    • ►  June (3)
    • ►  May (3)
    • ►  April (3)
    • ►  March (4)
    • ►  February (2)
    • ►  January (1)
  • ►  2010 (36)
    • ►  December (3)
    • ►  November (2)
    • ►  October (4)
    • ►  September (1)
    • ►  August (5)
    • ►  July (1)
    • ►  June (5)
    • ►  May (3)
    • ►  April (3)
    • ►  March (6)
    • ►  February (1)
    • ►  January (2)
  • ►  2009 (81)
    • ►  December (3)
    • ►  November (3)
    • ►  October (9)
    • ►  September (5)
    • ►  August (1)
    • ►  July (5)
    • ►  June (8)
    • ►  May (15)
    • ►  April (10)
    • ►  March (13)
    • ►  February (8)
    • ►  January (1)
  • ►  2008 (8)
    • ►  November (5)
    • ►  July (3)
Powered by Blogger.

About Me

Unknown
View my complete profile