sumnima sumnima sumnima sumnima sumnima sumnima sumnima
Categories
.htaccess blog

.htaccess Deny IPs

Deny from 24.213.139.114
Deny from 87.144.218.222
Deny from 95.5.32.79
Deny from 213.251.186.27
Deny from 88.191.93.186
Deny from 91.121.136.44
Deny from 50.56.92.47
Deny from 174.143.148.105
Deny from 82.170.168.91
Deny from 24.213.139.114
Deny from 61.147.110.14
Deny from 188.134.42.65
Deny from 122.164.215.155
Deny from 65.49.68.173
Deny from 220.155.1.166
Deny from 218.38.16.26
Deny from 50.56.92.47
Deny from 24.213.139.114
Deny from 91.200.19.84
Deny from 31.44.199.131
Deny from 49.50.8.63
Deny from 171.221.126.73    – 8 days ago CN

Categories
blog Hosts

Editing Hosts File

very simple method and works if the site is blocked by counter method or if you know the IP address of the website (you want to unblock). Simply open /etc/hosts file and remove the entry for your favorite websites and flush the DNS cache to propagate the changes.

gksu gedit /etc/hosts

In other case if you know the IP address of target website, which blocked using some other mechanism such as ISP level or something else then add an entry (/etc/hosts) for that website along with the correct IP address. The second method seems to be logically correct – if a domain name is resolved at host level then the lookup process is terminated, so host level dns entry should bypass other DNS filtering e.g at ISP level. Therefore it is expected to work (but I have not tested yet, I’ll let you know if it works), give it a try it may work. But it may not work if the website’s IP address changes frequently – because in that case it would be difficult to update the etc/hosts file manually to reflect the new value of IP address.

Adding a DNS entry in etc/hosts file –

TARGET_IP_ADDRESS                     TARGET_WEBSITE_DOMAIN_NAME

Then execute the following command – (to flush DNS cache)

sudo apt-get install nscd
sudo /etc/init.d/nscd restart