LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 04-06-2010, 04:54 AM   #1
amritpalpathak
Member
 
Registered: Feb 2010
Posts: 116

Rep: Reputation: 15
how to block website in ubuntu 9.10


plz somebody help me .. to block a website =www.yahoo.com on my ubuntu pc
 
Old 04-06-2010, 05:00 AM   #2
smoker
Senior Member
 
Registered: Oct 2004
Distribution: Fedora Core 4, 12, 13, 14, 15, 17
Posts: 2,279

Rep: Reputation: 250Reputation: 250Reputation: 250
in /etc/hosts

Code:
127.0.0.1	www.yahoo.com
 
Old 04-06-2010, 04:07 PM   #3
jefro
Moderator
 
Registered: Mar 2008
Posts: 21,981

Rep: Reputation: 3625Reputation: 3625Reputation: 3625Reputation: 3625Reputation: 3625Reputation: 3625Reputation: 3625Reputation: 3625Reputation: 3625Reputation: 3625Reputation: 3625
A sharp person may be able to get past that but blocking by host name is usually good for most.

Might have to setup a squid to block.

Get a good hosts file to protect your system a bit from other malware sites while you are at it. See http://www.mvps.org/winhelp2002/hosts.htm
 
Old 04-17-2010, 08:46 AM   #4
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Mint
Posts: 17,809

Rep: Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743
Amrit;
It appears that you have NEVER posted any follow-up in any of your 34 threads----not even a "thank you". Since you never respond to the people who try to help you, I am one of many members who will not try to help you.
 
  


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
block website soumalya Linux - Networking 2 09-19-2008 09:06 AM
Why can't I use /etc/hosts.deny to block a website? CJS Linux - Networking 8 08-29-2008 11:39 AM
How to block a Website in Squid winxlinx Linux - Networking 1 02-21-2006 04:40 PM
access the block website by certain IP space_beyond Linux - Security 1 06-03-2005 12:33 AM
How many ways can u block a website? debug019 Linux - Newbie 4 11-07-2004 10:34 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 05:58 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