特点: 不做跳转,直接修改了内容。内容里面加上他们的广告,并通过 iframe 来显示原网页。
对方广告主机地址: http://118.178.108.0/js/banner/index.html
劫持后的网页内容: http://pastebin.com/gxt44fds
之前投诉过电信,并没有卵用,暂时通过 iptables 将对方广告主机劫持到本地
iptables -t nat -A PREROUTING -d 118.178.108.0 -p tcp --dport 80 -j DNAT --to-destination 192.168.1.27:80
对方广告主机地址: http://118.178.108.0/js/banner/index.html
劫持后的网页内容: http://pastebin.com/gxt44fds
之前投诉过电信,并没有卵用,暂时通过 iptables 将对方广告主机劫持到本地
iptables -t nat -A PREROUTING -d 118.178.108.0 -p tcp --dport 80 -j DNAT --to-destination 192.168.1.27:80