Monday, 13 June 2011

to block / remove ads on mytv.tvb.com [去 除 廣告]

block these 2 url
gcdn.2mdn.net
doubleclick.net
by adding filter rules in your firewall

or block it in windows hosts file located %windir%\system32\drivers\etc\hosts
(/etc/hosts in linux)
to open hosts file in windows, click 'start' -> 'run'
notepad %windir%\system32\drivers\etc\hosts
(sudo leafpad /etc/hosts &)
then append these 2 lines
127.0.0.1 gcdn.2mdn.net
127.0.0.1 doubleclick.net

or by hitting this command
echo 127.0.0.1 gcdn.2mdn.net >> %windir%\system32\drivers\etc\hosts
echo 127.0.0.1 doubleclick.net >> %windir%\system32\drivers\etc\hosts

on dd-wrt router, for example
Access Restrictions
 Access Policy
  Policy: 1
  Status: Enable
  PCs ie:192.168.0.0-192.168.0.255 (mac or single ip or ip range)
 Website Blocking by URL Address
  gcdn.2mdn.net
  doubleclick.net
http://www.dd-wrt.com/wiki/index.php/Access_Restrictions#Filtering_Services.2FURLs.2FKeywords

I hate advertisement!

No comments:

Labels

Search This Blog