Blocking A Website

New to SolydXK? This is the place to start.
Please check the other subforums to see if there's a more suitable place for your question.
User avatar
Night Wing
Posts: 445
Joined: 26 Dec 2013 02:46
Location: Texas, USA

Blocking A Website

Postby Night Wing » 08 Jan 2014 14:57

As a newbie linux user, Mint was my first linux distro. Since I have two desktop tower computers and each has two hard drives in it, one of the two hard drives in the first desktop tower has Mint on it and one of the second desktop's hard drive has SolydX on it.

In Mint 16, there is a Domain Blocker where I can block a website. Is there an equivalent module where I can do the same thing in SolydX?

kurotsugi
Posts: 2290
Joined: 09 Jan 2014 00:17

Re: Blocking A Website

Postby kurotsugi » 09 Jan 2014 07:20

there's no tools yet for solydxk but you can do it manually by editing /etc/hosts. the syntax is

Code: Select all

127.0.0.1<space><your blocked site address>
for an example here's mine

Code: Select all

# default setting. don't touch it
127.0.0.1	localhost
127.0.1.1	securo 
# The following lines are desirable for IPv6 capable hosts
::1     localhost ip6-localhost ip6-loopback
fe00::0 ip6-localnet
ff00::0 ip6-mcastprefix
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters
ff02::3 ip6-allhosts

# add your blocked site here
127.0.0.1 208.185.87.8.liveadvert.com
127.0.0.1 t2.leadlander.com
127.0.0.1 counter.bizland.com
127.0.0.1 fra482.ib.adnxs.com
127.0.0.1 adpop.theglobe.net
127.0.0.1 ad.bharatstudent.com
127.0.0.1 mt83.mtree.com
127.0.0.1 www.advombat.ru
127.0.0.1 geobytes.com 

User avatar
Night Wing
Posts: 445
Joined: 26 Dec 2013 02:46
Location: Texas, USA

Re: Blocking A Website

Postby Night Wing » 09 Jan 2014 12:10

Thanks for you help.

Since I've had nothing but aggravation from using the terminal with other things, I'm going to hold off on using the terminal and wait for some module if it ever comes available.

Thanks for your help. It's appreciated, but I've literally done so much damage in past experiences using the terminal and haven't been able to repair the damage which I've caused which has made me re-install a distro as a fix to get back to where I was originally.

dyfi
Posts: 88
Joined: 15 Mar 2013 17:45

Re: Blocking A Website

Postby dyfi » 09 Jan 2014 12:52

@ Night Wing - Have a look at Clonezilla and Redobackup - they will enable you to make an image of your operating system and later use this image to restore previous working state. Not strictly a reply to your post but it would help you in the future.

Deleted User 2763

Re: Blocking A Website

Postby Deleted User 2763 » 09 Jan 2014 14:22

can mintNanny be ported?
-Hinto

kurotsugi
Posts: 2290
Joined: 09 Jan 2014 00:17

Re: Blocking A Website

Postby kurotsugi » 10 Jan 2014 14:17

nope. that's not terminal commands. that's actually a simple text editor interface. i usually prefer that since it's faster and I can import my setting from any computer. if you prefer to use mintnanny, you can install it from mint's repo. first of all, add the repo address to your repo list.

Code: Select all

deb http://packages.linuxmint.com/ debian main upstream import backport
after that run

Code: Select all

sudo apt-get update 
sudo apt-get install mintnanny
there will be a warning popped out but you can ignore it. don't forget to delete the repo list after install mintnanny.

anyway, mintnanny can only handle small list of blocked site. if you have a lot of blocked site you need to do it manually as described above.

User avatar
rolgiati
Posts: 209
Joined: 08 Jun 2013 16:10

Re: Blocking A Website

Postby rolgiati » 10 Jan 2014 17:15

You can add the offending webste to /etc/hosts without using an editor; in Menu => Accessories => Root Terminal (give the password) simply enter the command:

Code: Select all

echo "127.0.0.1 BadSite.com" >> /etc/hosts
then dont forget to run

Code: Select all

/bin/killall -s HUP dnsmasq
to activate the newly modified hosts file.


Return to “Newbie Questions”

Who is online

Users browsing this forum: No registered users and 11 guests