1

I have added a site in my hosts file but its not working, please view the pics.

My Hosts file

 127.0.0.1       localhost
 127.0.1.1       Ubuntu.local    Ubuntu
 127.0.0.1       dailymotion.com *.dailymotion.com http://www.dailymotion.com*
 # The following lines are desirable for IPv6 capable hosts
 ::1     ip6-localhost ip6-loopback
 fe00::0 ip6-localnet
 ff00::0 ip6-mcastprefix
 ff02::1 ip6-allnodes
 ff02::2 ip6-allrouters

As added in hosts file the site is blocked enter image description here

Copy Paste The Video Link ....Site is not Block enter image description here

How do i block each and every link that has http://dailymotion.com/

I have tried with 0.0.0.0 dailymotion.com to hosts file, nothing work..But in Windows 7 & Windows 8 its working perfectly

Not interested in weird iptables commands

Thanks

Thanks to Achu

enter image description here

Qasim
  • 22,162

1 Answers1

4

Please put this way

127.0.0.1 www.dailymotion.com 
127.0.0.1 dailymotion.com 
127.0.0.1 *.dmcdn.net 
127.0.0.1 dmcdn.net 

I can see that dailymotion video's comes from dmcd.net

Achu
  • 21,407