LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
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-20-2014, 07:45 AM   #16
jlinkels
LQ Guru
 
Registered: Oct 2003
Location: Bonaire, Leeuwarden
Distribution: Debian /Jessie/Stretch/Sid, Linux Mint DE
Posts: 5,195

Rep: Reputation: 1043Reputation: 1043Reputation: 1043Reputation: 1043Reputation: 1043Reputation: 1043Reputation: 1043Reputation: 1043

Bold/italics is to emphasize not to express hostility.

"This question" refers to "how to block websites in linux os" by the OP.

jlinkels
 
Old 04-20-2014, 07:53 AM   #17
Philip Lacroix
Member
 
Registered: Jun 2012
Distribution: Slackware
Posts: 441

Rep: Reputation: 574Reputation: 574Reputation: 574Reputation: 574Reputation: 574Reputation: 574
Quote:
Originally Posted by itsgregman View Post
Your post seems somewhat hostile, at least the the bold lettering may imply it.
I believe that jlinkels's apparent hostility was not directed to you, and that he wasn't actually referring to your comment (which fully makes sense), but to the OP's vague formulation of his/her question. In fact the LQ netiquette does recommend that questions respect a few criteria, which the OP apparently didn't consider, but of which he has now been made aware.

Last edited by Philip Lacroix; 04-20-2014 at 08:29 AM. Reason: oops, jlinkels had already replied
 
Old 04-20-2014, 08:38 AM   #18
JeremyBoden
Senior Member
 
Registered: Nov 2011
Location: London, UK
Distribution: Debian
Posts: 1,947

Rep: Reputation: 511Reputation: 511Reputation: 511Reputation: 511Reputation: 511Reputation: 511
Talking

Quote:
Originally Posted by arunyadav View Post
how to block website in linux os
I typed that into DuckDuckGo
First result was http://www.addictivetips.com/ubuntu-...-ubuntu-linux/

So search engines can answer rhetorical questions!!!
 
Old 04-20-2014, 12:53 PM   #19
colucix
LQ Guru
 
Registered: Sep 2003
Location: Bologna
Distribution: CentOS 6.5 OpenSuSE 12.3
Posts: 10,509

Rep: Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983
Quote:
Originally Posted by turtlebay777 View Post
Urgent... He didn't use those words!

Nice helpful response from the moderator - not!
He did, instead. The thread title (previously simply "Urgent") has been changed as mentioned.

Quote:
Originally Posted by turtlebay777 View Post
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!
I don't understand where you see this kind of attitude from me. I just reported to change the thread title in order to be more descriptive and to give the thread more exposure. That's all.
 
Old 04-20-2014, 01:28 PM   #20
bcwagne
Member
 
Registered: Feb 2008
Distribution: Debian Testing
Posts: 169

Rep: Reputation: 32
There are a few ways to block websites in linux. The hosts file is one way. Two links have been given for that method. Another way is to set up IP tables, as has been mentioned. I tried both of those methods and could never get them to work for me the way I needed--probably because I didn't need specific sites blocked, but whole categories of sites. The method I used was to use a proxy+blocker, like squid+dansguardian, or squid+squidguard. This worked for me because it was easier (for me) to set up than trying to figure out IP tables or blocking each site in the hosts file. Also, I could block whole categories (advertisements, malware, etc.) with just a few lines typed into the dansguardian configuration file. Also, those categories were updated through automatic downloads of blacklists every night.

Anyway, method 1:
Edit the /etc/hosts file (google search: How to block sites using /etc/hosts)

Method 2:
Set up IP tables (google search: How to set up IP tables to block sites)

Method 3:
Set up a proxy and blocker (google search: How to set up proxy on linux; how to set up dansguardian on linux; how to set up squidguard on linux)

Good luck!
 
1 members found this post helpful.
Old 04-20-2014, 05:21 PM   #21
turtlebay777
Member
 
Registered: Apr 2014
Posts: 39

Rep: Reputation: 3
Quote:
Originally Posted by colucix View Post
He did, instead. The thread title (previously simply "Urgent") has been changed as mentioned.


I don't understand where you see this kind of attitude from me. I just reported to change the thread title in order to be more descriptive and to give the thread more exposure. That's all.
Apologies, but would of helped if you'd left the offending headline as is rather than changing it, then the warning would have meant something.
 
Old 04-20-2014, 08:02 PM   #22
yo44yo
LQ Newbie
 
Registered: Apr 2014
Posts: 3

Rep: Reputation: Disabled
Oooh...))
You can block "google.com" so, add to file "/etc/hosts" this line "127.0.0.1 google.com".

Too, you will be able to block site so, install "safescript" plugin to google chrome and edit him preferences.

Last edited by yo44yo; 04-20-2014 at 08:04 PM.
 
Old 04-20-2014, 08:09 PM   #23
JeremyBoden
Senior Member
 
Registered: Nov 2011
Location: London, UK
Distribution: Debian
Posts: 1,947

Rep: Reputation: 511Reputation: 511Reputation: 511Reputation: 511Reputation: 511Reputation: 511
Of course, most site blocking methods are easily circumvented by a 5 year old...
 
Old 04-20-2014, 08:10 PM   #24
yo44yo
LQ Newbie
 
Registered: Apr 2014
Posts: 3

Rep: Reputation: Disabled
Quote:
Originally Posted by JeremyBoden View Post
Of course, most site blocking methods are easily circumvented by a 5 year old...
How?
 
Old 04-20-2014, 08:32 PM   #25
JeremyBoden
Senior Member
 
Registered: Nov 2011
Location: London, UK
Distribution: Debian
Posts: 1,947

Rep: Reputation: 511Reputation: 511Reputation: 511Reputation: 511Reputation: 511Reputation: 511
Usual workround is by going via a proxy.
 
Old 04-20-2014, 08:34 PM   #26
yo44yo
LQ Newbie
 
Registered: Apr 2014
Posts: 3

Rep: Reputation: Disabled
Quote:
Originally Posted by JeremyBoden View Post
Usual workround is by going via a proxy.
or OpenVPN =)
 
Old 04-21-2014, 12:45 PM   #27
bcwagne
Member
 
Registered: Feb 2008
Distribution: Debian Testing
Posts: 169

Rep: Reputation: 32
Or if it is a local (on the same computer) block, simply stopping the process often works, too.
 
Old 04-21-2014, 03:27 PM   #28
jefro
Moderator
 
Registered: Mar 2008
Posts: 21,982

Rep: Reputation: 3625Reputation: 3625Reputation: 3625Reputation: 3625Reputation: 3625Reputation: 3625Reputation: 3625Reputation: 3625Reputation: 3625Reputation: 3625Reputation: 3625
We lost the OP.
 
  


Reply



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 8 12-12-2019 12:56 PM
how can I block some list of websites in redhat linux server deepuvl Linux - Security 2 12-13-2011 11:16 AM
How to block websites? cusri2004 Linux - Newbie 1 12-26-2010 10:07 PM
how to block websites .. huno Linux - Software 5 04-22-2004 08:31 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 10:14 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
Open Source Consulting | Domain Registration