How to Remove Advertisements with Pixelserv on DD-WRT :: Sysadmin Geek



贊助商連結


FYI
2010-11-04, 04:44 AM
Pixelserv Homepage (http://proxytunnel.sourceforge.net/pixelserv.php)

Pixelserv is a super minimal webserver, it's one and only purpose is serving a 1x1 pixel transparent gif file. Using some creative firewalling (netfilter/iptables) rules you can redirect some webrequests (for adds for example) to pixelserv.
How to Remove Advertisements with Pixelserv on DD-WRT :: Sysadmin Geek (http://sysadmingeek.com/articles/how-to-remove-advertisements-with-pixelserv-on-dd-wrt/)

相信有些網友會在%SystemRoot%\system32\drivers\etc\hosts 加入

127.0.0.1 rad.msn.com
127.0.0.1 rad.live.com
127.0.0.1 hiad.myweb.hinet.net
以便阻擋MSN & Hinet 的廣告, 不過這在開啟網頁的情形下會導致瀏覽器停頓, 所以並非最好的辦法, 上述連結所提供的辦法則是把網站黑名單導入Pixelserv, 再回傳一個只有 "一點" 的透明GIF 圖形 (所以才稱為 "Pixel Server"), 這個方法只適用於封鎖整個網站, 不適用於只封鎖網站的部分內容, 作者雖然以DD-WRT 為基礎, 應該也可以適用於其他平台, 例如OpenWrt, 而且可能更容易移植, 因為OpenWrt 的架構更開放, 更容易修改, 不過在此要特別指出的是以上連結所提供的Pixelserv 執行檔應該只能用於MIPSEL 架構, 例如Broadcom CPU, 其他架構 (MIPS/Atheros) 則請自行編譯, 否則請安裝Perl 或Microperl, 再執行Perl 版的Pixelserv

此外, 以上連結的作者假設Pixelserv's IP: xxx.xxx.xxx.254, 其實以OpenWrt 的作法可以更簡單, 也不需要那麼複雜的腳本, 原因就是受到DD-WRT 的架構所限制, 建議安裝之前先瞭解一下腳本內容

pixelserv compiled to run on router WRT54G - LinksysInfo - Community Forums for Linksys Devices (http://www.linksysinfo.org/forums/showthread.php?t=62758)
tomato.multics.mooo.com : / (http://tomato.multics.mooo.com)

贊助商連結


FYI
2010-11-05, 03:49 AM
DD-WRT Forum :: View topic - ad-blocking with DD-WRT revisited (simple) (http://www.dd-wrt.com/phpBB2/viewtopic.php?t=47515)
DD-WRT Forum :: View topic - Ad-Blocking, and downgrading from mega to standard. (http://www.dd-wrt.com/phpBB2/viewtopic.php?p=368200#368200)
DD-WRT Forum :: View topic - @ Frater - AsiaBlock (http://www.dd-wrt.com/phpBB2/viewtopic.php?t=61346)
DD-WRT Forum :: View topic - Blocking Regions/Countries Help (http://www.dd-wrt.com/phpBB2/viewtopic.php?t=60493)
Optware, the Right Way - DD-WRT Wiki (http://www.dd-wrt.com/wiki/index.php/Optware%2C_the_Right_Way) (Pixelserv & AsiaBlock & Worldblock)

DD-WRT Forum :: View topic - Buffalo WHR-HP-GN Firmware Mini Version (http://www.dd-wrt.com/phpBB2/viewtopic.php?p=502777#502777)

FYI
2010-11-09, 06:05 AM
DD-WRT Forum :: View topic - Possibility of adding perl to dd-wrt (http://www.dd-wrt.com/phpBB2/viewtopic.php?t=52112)
pixserve19dd.zip - Pixelserv19.c and build/test scripts (http://www.dd-wrt.com/phpBB2/download.php?id=16963) (for Broadcom with DD-WRT toolchain)
pixelserv_AR71xx.zip - pixelserv AR71xx binary (http://www.dd-wrt.com/phpBB2/download.php?id=16985) (for Atheros, compiled from pixelserv19.c with OpenWrt toolchain)
pixserve22dd.zip - Source, build script and binary for pixelserv.c V22 (http://www.dd-wrt.com/phpBB2/download.php?id=17344) (for Broadcom with DD-WRT toolchain)
pixelserv22_AR71xx.zip - pixelserv v22 Atheros binary (http://www.dd-wrt.com/phpBB2/download.php?id=17393) (for Atheros, compiled from pixelserv22.c with OpenWrt toolchain)

FYI
2011-04-07, 07:25 PM
How to Remove Advertisements with Pixelserv on DD-WRT - How-To Geek (http://www.howtogeek.com/51477/how-to-remove-advertisements-with-pixelserv-on-dd-wrt/) (最新pixelserv 教學 by aviad_ra)
Hotfortech - How to remove advertisements with pixelserv on DD-WRT (http://hotfortech.wikispaces.com/How+to+remove+advertisements+with+pixelserv+on+DD-WRT) (舊版pixelserv 教學 by aviad_ra)

以下適用於沒有足夠Flash 空間擺放pixelserv 主程式的路由器, 方法就是利用4KB NVRAM, 而程式必須先經過gzip & uucode 轉換成純文字.

DD-WRT Forum :: View topic - pixelserv without perl, without any jffs/cifs/usb free (http://www.dd-wrt.com/phpBB2/viewtopic.php?t=71036)
另一個更簡單的阻擋廣告的方法則是把DNS IP 指向OpenDNS

DD-WRT Forum :: View topic - Effective Ad-Blocking with DD-WRT OpenDNS and Startup Script (http://www.dd-wrt.com/phpBB2/viewtopic.php?t=85763)
Blocking URL's/IP's - DD-WRT Wiki (http://www.dd-wrt.com/wiki/index.php/Blocking_URL%27s/IP%27s)