DaemonForums  

Go Back   DaemonForums > Other Operating Systems > Other OS

Other OS Any other OS such as Microsoft Windows, BeOS, Plan9, Syllable, and whatnot.

Reply
 
Thread Tools Display Modes
  #1   (View Single Post)  
Old 11th April 2009
roddierod's Avatar
roddierod roddierod is offline
Real Name: Rod Person
VPN Cryptographer
 
Join Date: Apr 2008
Location: Pittsburgh, Pa
Posts: 437
Default Blocking MySpace

My wife wants me to block myspace on her WinXP machine but allow it on other machines. If we wanted to block it from all machine it would be a simple entry in my router. But I'm unsure of an effective way on just the one machine. I've tried entering some things in the host file on that machine but that doesn't seem too effective. Anyone have any better ways?
__________________
"The basic tool for the manipulation of reality is the manipulation of words. If you can control the meaning of words, you can control the people who must use the words." -Philip K. Dick
Reply With Quote
  #2   (View Single Post)  
Old 11th April 2009
BSDfan666 BSDfan666 is offline
Real Name: N/A, this is the interweb.
Banned
 
Join Date: Apr 2008
Location: Ontario, Canada
Posts: 2,223
Default

There was a thread similar to this last December.. I mentioned blocking sites at the router level.

http://www.daemonforums.org/showthread.php?t=2531

If you really want to do this locally, the hosts file was a valid option.. but antivirus software may revert such changes.

Are you sure you made the correct changes in C:\Windows\system32\drivers\etc\hosts?
Quote:
Originally Posted by Windows NT/XP Hosts file
# Copyright (c) 1993-1999 Microsoft Corp.
#
# This is a sample HOSTS file used by Microsoft TCP/IP for Windows.
#
# This file contains the mappings of IP addresses to host names. Each
# entry should be kept on an individual line. The IP address should
# be placed in the first column followed by the corresponding host name.
# The IP address and the host name should be separated by at least one
# space.
#
# Additionally, comments (such as these) may be inserted on individual
# lines or following the machine name denoted by a '#' symbol.
#
# For example:
#
# 102.54.94.97 rhino.acme.com # source server
# 38.25.63.10 x.acme.com # x client host

127.0.0.1 localhost
127.0.0.1 myspace.com
127.0.0.1 www.myspace.com
This does seem like a stopgap measure though, it doesn't cover all possible myspace.com subdomains..

Do you run your own local caching/forwarding DNS server? BIND has an interesting feature called "view", you could create a bogus myspace.com zone and have it only effect your Wife's activity.. presuming she has a static IP address.

/var/named/etc/named.conf:
Code:
view "spousal_trickery" {
	match-clients { wifes_computer; };
	recursion yes;

	zone "myspace.com" {
		type master;
		file "master/myspace.com ";
	};
};
/var/named/master/myspace.com:
Code:
@	IN	SOA	myspace.com. tooty.myspace.com. (
			?	; serial
			?	; refresh
			?	; retry
			?	; expiration
			? )	; minimum

		NS	localhost.
		A	127.0.0.1
*.myspace.com.	A	127.0.0.1
Just an idea, but probably a bad one.. my other solution was in that thread I linked above.
Reply With Quote
  #3   (View Single Post)  
Old 11th April 2009
roddierod's Avatar
roddierod roddierod is offline
Real Name: Rod Person
VPN Cryptographer
 
Join Date: Apr 2008
Location: Pittsburgh, Pa
Posts: 437
Default

Quote:
Originally Posted by BSDfan666 View Post
If you really want to do this locally, the hosts file was a valid option.. but antivirus software may revert such changes.

Are you sure you made the correct changes in C:\Windows\system32\drivers\etc\hosts?
yes this is the file i changed.

Quote:
This does seem like a stopgap measure though, it doesn't cover all possible myspace.com subdomains..
i found a site that listed something like 20 or 30 myspace subdomains and i added all of them. I'd rather block a range of ip address though.

I don't run bind or anything in front of her machine, although i am considering building a small BSD firewall now.

Thanks for the info, I will keep this in mind.
__________________
"The basic tool for the manipulation of reality is the manipulation of words. If you can control the meaning of words, you can control the people who must use the words." -Philip K. Dick
Reply With Quote
  #4   (View Single Post)  
Old 12th April 2009
anomie's Avatar
anomie anomie is offline
Local
 
Join Date: Apr 2008
Location: Texas
Posts: 445
Default

If you're forced to do this at the host level, also consider WIPFW. I've had success with it on a couple different Windows clients; if you're already familiar with IPFW it should be quick and easy to implement.
__________________
Kill your t.v.
Reply With Quote
Reply

Thread Tools
Display Modes

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 On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
PF Blocking VPN Traffic plexter OpenBSD Security 6 23rd January 2009 05:25 PM
pf blocking php mail ijk FreeBSD Security 7 30th October 2008 08:33 PM
PF Blocking schrodinger OpenBSD Security 6 6th October 2008 10:33 PM
Blocking remote desktop apps bichumo General software and network 3 30th September 2008 08:14 PM


All times are GMT. The time now is 03:16 AM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Content copyright © 2007-2010, the authors
Daemon image copyright ©1988, Marshall Kirk McKusick