LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices

Reply
 
Search this Thread
Old 01-20-2009, 04:20 AM   #1
7mza
Member
 
Registered: May 2008
Location: Jordan
Distribution: use fedora but prefer Slackware
Posts: 98

Rep: Reputation: 15
deny access to youtube.com


hi , what i want is to deny access to the www.youtube.com
with ips: * 208.65.153.238
* 208.65.153.251
* 208.65.153.253
* 208.117.236.69

at 1st i want try to deny access to the ip 208.65.153.238 ,i learned how to deny Access in ccna using SACL or EACL but i dont know how to access my router and config it .

second can i deny access using the DNS not ip ?
 
Old 01-20-2009, 04:36 AM   #2
tredegar
LQ 5k Club
 
Registered: May 2003
Location: London, UK
Distribution: Debian "Jessie"
Posts: 6,033

Rep: Reputation: 371Reputation: 371Reputation: 371Reputation: 371
Quote:
hi , what i want is to deny access to the www.youtube.com
The really easy way:
Put this line in your /etc/hosts file
Code:
127.0.0.1       www.youtube.com
Restart networking. Logout. Login again.
Now www.youtube.com cannot be reached.
 
Old 01-20-2009, 04:49 AM   #3
7mza
Member
 
Registered: May 2008
Location: Jordan
Distribution: use fedora but prefer Slackware
Posts: 98

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by tredegar View Post
The really easy way:
Put this line in your /etc/hosts file
Code:
127.0.0.1       www.youtube.com
Restart networking. Logout. Login again.
Now www.youtube.com cannot be reached.
gd to know that , i will try it , but am not the one who use the internet so i want deny any one on other pc trying to access the youtube.com thats why i have to config on the router

Last edited by 7mza; 01-20-2009 at 04:51 AM.
 
Old 01-20-2009, 05:48 AM   #4
repo
LQ 5k Club
 
Registered: May 2001
Location: Belgium
Distribution: Linux Mint
Posts: 8,516

Rep: Reputation: 896Reputation: 896Reputation: 896Reputation: 896Reputation: 896Reputation: 896Reputation: 896
Quote:
thats why i have to config on the router
Quote:
t i dont know how to access my router and config it .
A good idea should be to give the brand of the router.
Then goto google and try to find the manual.
 
  


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
Access to youtube and not google ? carignou Linux - Networking 2 05-05-2008 05:19 AM
Squid Deny Access but... Roach Linux - Software 4 11-23-2004 01:18 PM
access and deny mchitrakar Linux - Security 8 04-24-2004 04:53 AM
deny this fruitcake access hux Linux - Networking 3 02-11-2002 04:08 PM
Deny access by IP address plisken Linux - Security 1 12-29-2001 11:11 PM


All times are GMT -5. The time now is 10:07 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration