LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 04-19-2014, 09:38 AM   #1
arunyadav
LQ Newbie
 
Registered: Apr 2014
Posts: 1

Rep: Reputation: Disabled
How to block websites in Linux?


how to block website in linux os
 
Old 04-19-2014, 10:13 AM   #2
itsgregman
Member
 
Registered: Jan 2008
Location: North Carolina
Distribution: Pclinuxos, Slackware, salix
Posts: 160

Rep: Reputation: 50
Here's a couple links that may help.

http://www.addictivetips.com/ubuntu-...-ubuntu-linux/

http://linuxg.net/how-to-easily-bloc...linux-systems/

I hope this helps. You really should at least say what distro you're using when posting and your thread title should also be more informative, Urgent will not get a lot of responses. Just a word to the wise.
 
Old 04-19-2014, 10:49 AM   #3
colucix
LQ Guru
 
Registered: Sep 2003
Location: Bologna
Distribution: CentOS 6.5 OpenSuSE 12.3
Posts: 10,509

Rep: Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976
Please use a descriptive title for your thread excluding words like 'urgent' or 'help'. Using a proper title makes it easier for members to help you. This thread has been reported for title modification. Please do not add replies that address the thread title.
 
Old 04-19-2014, 06:39 PM   #4
turtlebay777
Member
 
Registered: Apr 2014
Posts: 39

Rep: Reputation: 3
Quote:
Originally Posted by colucix View Post
Please use a descriptive title for your thread excluding words like 'urgent' or 'help' He didn't use those words!. Using a proper title makes it easier for members to help you. This thread has been reported for title modification. Please do not add replies that address the thread title.
Nice helpful response from the moderator - not!

If the websites you want to block are adverts why not install adblock plus in your browser.

Last edited by turtlebay777; 04-19-2014 at 06:42 PM.
 
Old 04-19-2014, 06:49 PM   #5
astrogeek
Moderator
 
Registered: Oct 2008
Distribution: Slackware [64]-X.{0|1|2|37|-current} ::12<=X<=14, FreeBSD_10{.0|.1|.2}
Posts: 3,879
Blog Entries: 1

Rep: Reputation: 1998Reputation: 1998Reputation: 1998Reputation: 1998Reputation: 1998Reputation: 1998Reputation: 1998Reputation: 1998Reputation: 1998Reputation: 1998Reputation: 1998
Quote:
Originally Posted by turtlebay777 View Post
Nice helpful response from the moderator - not!

If the websites you want to block are adverts why not install adblock plus in your browser.
Helpful response from interloper - not!

It was reported for title modification - and it has now been modified...
 
Old 04-19-2014, 08:05 PM   #6
turtlebay777
Member
 
Registered: Apr 2014
Posts: 39

Rep: Reputation: 3
No flame wars please, all Linux experts were 'interlopers' first. I try to help esp Newbies but it's necessary to sometimes guess what they mean when they've been used to using Windows all their life. I guess the mod meant well but we are here to surely help newbies, not chase they away with superior attitudes because we can use Linux and they can't!

If that help isn't appreciated by the 'seniors' here then you may as well close the site right now, because it's not a good place to ask questions.
 
Old 04-19-2014, 08:20 PM   #7
Emerson
LQ Guru
 
Registered: Nov 2004
Location: Saint Amant, Acadiana
Distribution: Gentoo ~arch
Posts: 5,872

Rep: Reputation: Disabled
People who ask smart questions get smart answers. This is how it is and how it has always been.

how to block website in linux os

vs.

I'm using <distro>. I'd like to block a website for this single computer. What would be the best way to do it?

Now, I'd respond to the second version. I'd say the simplest way for a single computer is to edit your /etc/hosts file and point this particular website to 127.0.0.1.

BTW, this is not a joke.
 
1 members found this post helpful.
Old 04-19-2014, 08:23 PM   #8
astrogeek
Moderator
 
Registered: Oct 2008
Distribution: Slackware [64]-X.{0|1|2|37|-current} ::12<=X<=14, FreeBSD_10{.0|.1|.2}
Posts: 3,879
Blog Entries: 1

Rep: Reputation: 1998Reputation: 1998Reputation: 1998Reputation: 1998Reputation: 1998Reputation: 1998Reputation: 1998Reputation: 1998Reputation: 1998Reputation: 1998Reputation: 1998
Quote:
Originally Posted by turtlebay777 View Post
No flame wars please, all Linux experts were 'interlopers' first. I try to help esp Newbies but it's necessary to sometimes guess what they mean when they've been used to using Windows all their life. I guess the mod meant well but we are here to surely help newbies, not chase they away with superior attitudes because we can use Linux and they can't!

If that help isn't appreciated by the 'seniors' here then you may as well close the site right now, because it's not a good place to ask questions.
No flames were started and there is no need to arrive at this forum with a somewhat obvious chip on the shoulder...

"Interloper" was intended only as a reference to someone who obviously had not followed the brief history of this thread before commenting - we all do it at times.

Take a deep breath and try to pick up on the friendly helpful atmosphere here at LQ, where the mods are not thought police but are as helpful and friendly as all the old folks! Please adjust to the proper etiquette and learn the ropes and rules before suggesting the place be shut down - and welcome to LQ.

Last edited by astrogeek; 04-19-2014 at 08:26 PM.
 
Old 04-19-2014, 08:43 PM   #9
itsgregman
Member
 
Registered: Jan 2008
Location: North Carolina
Distribution: Pclinuxos, Slackware, salix
Posts: 160

Rep: Reputation: 50
This thread seems to have been derailed on etiquette issues and mod bashing. I would hope this thread get back on topic and the OP gets the assistance he needs. That's what were supposed to be here for isn't it?
 
Old 04-19-2014, 09:04 PM   #10
jefro
Moderator
 
Registered: Mar 2008
Posts: 15,374

Rep: Reputation: 2198Reputation: 2198Reputation: 2198Reputation: 2198Reputation: 2198Reputation: 2198Reputation: 2198Reputation: 2198Reputation: 2198Reputation: 2198Reputation: 2198
I like to use hosts files for blocking dns names. Send them to either 127.0.0.1 or 0.0.0.0

To block ip address, one tends to use iptables. http://www.cyberciti.biz/faq/how-do-...-linux-server/
 
Old 04-19-2014, 09:17 PM   #11
cizzi
Member
 
Registered: Jun 2001
Distribution: Gentoo
Posts: 144

Rep: Reputation: 18
I'm just wondering what kind of sites you wish to block?
 
Old 04-19-2014, 09:20 PM   #12
Emerson
LQ Guru
 
Registered: Nov 2004
Location: Saint Amant, Acadiana
Distribution: Gentoo ~arch
Posts: 5,872

Rep: Reputation: Disabled
When blocking sites for LAN (we do not know if this is the intention of OP) there are several proxy solutions.
 
Old 04-19-2014, 09:22 PM   #13
cizzi
Member
 
Registered: Jun 2001
Distribution: Gentoo
Posts: 144

Rep: Reputation: 18
squid?
 
Old 04-19-2014, 11:03 PM   #14
jlinkels
Senior Member
 
Registered: Oct 2003
Location: Bonaire
Distribution: Debian Wheezy/Jessie/Sid, Linux Mint DE
Posts: 4,493

Rep: Reputation: 635Reputation: 635Reputation: 635Reputation: 635Reputation: 635Reputation: 635
Quote:
Originally Posted by itsgregman View Post
This thread seems to have been derailed on etiquette issues and mod bashing. I would hope this thread get back on topic and the OP gets the assistance he needs. That's what were supposed to be here for isn't it?
Questions like this you type in into Google. Not as a post to fellow human beings which devote part of their precious time to assist others. Who exactly is ignoring LQ etiquette here?

jlinkels
 
Old 04-20-2014, 08:03 AM   #15
itsgregman
Member
 
Registered: Jan 2008
Location: North Carolina
Distribution: Pclinuxos, Slackware, salix
Posts: 160

Rep: Reputation: 50
Your post seems somewhat hostile, at least the the bold lettering may imply it.
I know this is going off topic in the same way I was referring to, BUT, I never said anyone was ignoring LQ etiquette, rather commented that that had become the focus of some responses and the rest seemed to be flames against each other.
Reading my quote from your post I have to wonder what question I asked that should be typed into Google rather than asked here, The only question in my post was a rhetorical one at the end and I doubt I'd get much from a Google search using it.
I guess it wasn't my place to try and get the thread on track, didn't mean to step on your toes there Mr. Linux Guru Sir.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
How to block ALL websites except 2 glenn69 Linux - Networking 7 09-21-2015 07:25 AM
how can I block some list of websites in redhat linux server deepuvl Linux - Security 2 12-13-2011 12:16 PM
How to block websites? cusri2004 Linux - Newbie 1 12-26-2010 11:07 PM
how to block websites .. huno Linux - Software 5 04-22-2004 09:31 PM


All times are GMT -5. The time now is 01:15 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration