here is my host file if you wish to block porn :)
http://datasaver.orgfree.com/hosts.zip
xthosts no longer works so I had 2 change! :)
Printable View
here is my host file if you wish to block porn :)
http://datasaver.orgfree.com/hosts.zip
xthosts no longer works so I had 2 change! :)
Dude it must download :)
just click download (2times) after clicking the link
One friend of mine was at my apartment (slept over) and he wanted to search for porn on my comp and was shocked to realise he cant get it... hahah
It was funny to see his face, i said... wazap bro... no porn today... and he said... yeah dude, i searched...but couldnt get into site...
email me if yoou want me to send it via email ;)
ipernar@yahoo.com
1st off, great suggestion! Thanks
2nd I would not do it this way.
What I would do is apply the 127.0.0.1 -> 0.0.0.0 on the mvp file.
Workflow:
download mvp file
apply the mentioned sed to it
then take a hosts.base and concat the mvp file to it and write it out to /etc/hosts
Looking at the hosts updatehosts.sh script from
http://hostsfile.mine.nu/downloads/updatehosts.sh.txt
There could be a possible bug with the sanity test on line 54.
if [ 'grep -c "banner" /tmp/hosts' ];then
Did the author accidently put quotes around the grep, instead of using
backticks? Perhaps it could have been written like this instead...
if [ $( grep -c "banner" /tmp/hosts ) ] ; then
That said, the script works perfectly, so thanks :-)
There is an unmentioned "problem" here, in practical terms, which can be rectified easily, if you know how.
The problem is how to merge multiple huge hosts files and to rid yourself of duplicate entries.
Just one solution is to use the following command post merger is to employ "sort -u".
$ sudo sort -u /etc/hosts -o /etc/hosts
Since you probably don't want the first few lines sorted, do a 'mark a'
ma
And then, just because, do a mark b:
mb
And then run the command:
:'a,'b!sort -u
Which is, "from a, to b, sort -unique".
Hi, I'm a first time Ubuntu user (aka Super Beginner) - This is my first post and I realize this is an old thread but I needed some help with the script updating my host file:
I installed tofrodos and when I do the last step - "sudo ./updatehosts.sh" - I get this message:
-------------------------------------------------------------
This script will update your Hosts file to the latest version
Your original Hosts file will be renamed to /etc/hosts.original
-------------------------------------------------------------
Checking for required applications...
... wget
... unzip
... dos2unix
tofrodos (which contains dos2unix) is missing.
... grep
One or more required applications are missing. Aborting now ...
adam@adam-MT6840:~$
It says I'm missing tofrodos which contains dos2unix. I've scoured the internet and these forums but I cannot find a solution. Any suggestions??
Thanks
http://packages.ubuntu.com/cgi-bin/s...ll&release=all
sudo apt-get install tofromdos