LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 10-29-2008, 08:10 AM   #1
pervez0269
LQ Newbie
 
Registered: Oct 2008
Posts: 3

Rep: Reputation: 0
"Block a specific Domain in Red Hat linux (version4)"


Dear Friend

I am pervez0269.
I just want to block a specific domain like yahoo.com or microsoft.com
Would you please let me know, how I can do that?\

Appreciate, if you would come back soon .

Regards
Pervez0269
 
Old 10-29-2008, 08:26 AM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
thread moved as this is not a members intro but a question.

You've not said what about it you want to block... mail? local web access? ip connectivity? is this a gateway device or an end client implementation??
 
Old 10-30-2008, 02:23 AM   #3
pervez0269
LQ Newbie
 
Registered: Oct 2008
Posts: 3

Original Poster
Rep: Reputation: 0
Dear Friend

I want to block web surffing so that no user can access in the yahoo.com or gmail.com domain.


Regards
pervez0269
 
Old 11-09-2008, 02:25 AM   #4
pervez0269
LQ Newbie
 
Registered: Oct 2008
Posts: 3

Original Poster
Rep: Reputation: 0
Question Restriction on Web site visit

Quote:
Originally Posted by acid_kewpie View Post
thread moved as this is not a members intro but a question.

You've not said what about it you want to block... mail? local web access? ip connectivity? is this a gateway device or an end client implementation??
Dear Friend

Sorry for late reply as my sister was severly sick for last 20 days. However, just to specify my requirement, please note that I want to block web site visit i.e. when the user shall type www.yahoo.com in internet explorer, then "Page Cannot be displayed" would be displayed and this is how they will be restricted from web site visit.

N.B. I am using mail server on Red Hat Linux 4.0

Please come back urgently.


Regards
pervez0269
 
Old 11-09-2008, 02:27 AM   #5
billymayday
LQ Guru
 
Registered: Mar 2006
Location: Sydney, Australia
Distribution: Fedora, CentOS, OpenSuse, Slack, Gentoo, Debian, Arch, PCBSD
Posts: 6,678

Rep: Reputation: 122Reputation: 122
Nothing urgent about it

Try putting an entry for www.yahoo.com in /etc/hosts that point to 127.0.0.1
 
Old 11-09-2008, 03:52 AM   #6
jdbeyers
LQ Newbie
 
Registered: Nov 2008
Posts: 9

Rep: Reputation: 0
Hi,

You could also try installing squid and squidguard and then block the website using squidguard. This is a sensible solution and can be used to block other websites in the future. You could integrate sarg with it, to produce html logs of the websites being visited.

Another option is to get the IP address of the site and then reject it in your firewall configuration.

Regards,
Jacques (http://b-squared.dnsalias.net)
 
  


Reply

Tags
access, block, restrict, web


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
Red Hat Ent. Linux "AS"/"ES" wardialer Linux - Newbie 7 02-11-2011 06:39 AM
During Red Hat Linux 9 install: error "No devices found to install Red Hat Linux" rbradtx Linux - Newbie 11 06-25-2010 04:55 PM
How to install "make" command from rpm on cd 2 - red hat linux 7.0 ZARGON Linux - Newbie 2 08-31-2004 10:53 AM
is "httpd start" red hat specific? xilace Linux - Software 2 10-30-2003 05:35 PM
Can't install: msg "I could not find a Red Hat Linux CDROM" jscarlett Linux - Newbie 6 06-21-2001 09:43 AM

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

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