OS X :: Using Hosts File To Block Websites?
Sep 27, 2009
My computer will be shared for a couple of weeks and there are certain websites that i need to block... Let's say i want to block facebook, heres what i did:
Opened up terminal, then typed 'sudo nano /etc/hosts' Added '127.0.0.1 facebook.com' on the bottom, having them separated with TAB instead of spaces Pressed ctrl+o and enter to save the file, then ctrl-x to quit the nano thing. Then i typed 'dscacheutil -flushcache' for changes to immediatelly take place Quit terminal
Am i doing something wrong here? I can still open facebook.com in Opera after those steps.... Am i missing something?
View 3 Replies
ADVERTISEMENT
Feb 22, 2012
We have a company, approx 32 macs, Lion Server, IP addresses distributed via LinkSys router. Aside from Parent Control and going via Terminal,I would like to know if there is a simple way of blocking access to certain websites? Are there any new apps which provide (hidden or out of sight) control for blocking websites?Â
View 5 Replies
View Related
Apr 26, 2012
I would like to host, what should I add?Private files are hidden.whare is /private/etc/hosts ?
Info:MacBookPro, Mac OS X (10.6.8)
View 1 Replies
View Related
Sep 2, 2010
I need a plug-in/add-on/application that will block certain websites I want at certain times. For example, block Youtube and Facebook from 4-6PM. Preferably these settings would be difficult or impossible to change once in place, haha. I want to be strict and not let myself procrastinate during the upcoming school year and I think this is the only way to actually do it.
View 7 Replies
View Related
Jan 31, 2009
I have an Airport Base Station Extreme and am wondering if it can be used to block certain websites? I have seen ways of blocking websites on a specific computer in the house but with having children there are a few specific websites I want to be able to block on the complete wifi network whether it's used by a Mac, PC, or even a Nintendo Wii or iPod Touch. I figured there must be some way of blocking it with the Airport Base Station Extreme's software. If not, is there another way to block it? I have a comcast modem/router and don't really know of any software that can be used with that.
View 1 Replies
View Related
Sep 8, 2010
I need to add something to the HOSTS file, here is the error message that appears when I try to log in. TextEdit[190:c0b] *** CFMessagePort: bootstrap_register(): failed 1100 (0x44c) 'Permission denied', port = 0x4403, name = 'com.apple.TextEdit.ServiceProvider' See /usr/include/servers/bootstrap_defs.h for the error codes. Using: sudo /Applications/TextEdit.app/Contents/MacOS/TextEdit /etc/hosts It does open the file, but it is empty. Should it be empty? I can not save it after editing it. But, if i use sudo open -t /etc/hosts OR $ sudo nano /private/etc/hosts It doesn't give me any error, and it also opens the HOSTS file. But its empty! Im using MAc Osx 10.5 Any ideas of what's going on?
View 6 Replies
View Related
Sep 19, 2009
I'm new to Mac so please be gentle!
I've just added a couple of entries to my HOSTS file to test whether it works the same way in Mac OSX (SL) as it does in Windoze.
I've found it does... and it doesn't.
My 4 test entries are totally blocked if I use Safari, but they're NOT blocked in Firefox.
Could someone tell me in simple terms why this is so, and if there's something I can do to make Firefox obey the HOSTS redirects?
View 4 Replies
View Related
Mar 22, 2012
I'm transferring my Wordpress website from one hosting service to another. I've been instructed by the new one that I have to edit the MyHost local file non my Mac. Here's the link I was sent: [URL]. How to find it and modify it?
Info:
Mac Book Pro 3.1, Mac OS X (10.5.8), 2.4 GHz Intel Core 2 Duo
View 2 Replies
View Related
Jun 5, 2012
I noticed that in Lion my /etc/hosts and /private/hosts gets overwritten at boot time. This is rather annoying as I would use said file to store the IP to name translations of some local computers. Before editing I would always become root and use nano to edit the file.how do I make the changes to the hosts file permanent?Â
View 1 Replies
View Related
Jun 26, 2012
I tried to edit the hosts file in Lion with: sudo nano /private/etc/hosts.Then entered Password.The window came up blank evev though I know there is data there.
View 7 Replies
View Related
Mar 8, 2009
I have an Airport Extreme Base Station, the newest model until the new model was released this past Tuesday. I have recently installed the new update that Apple just released.
My question. Can I block specific websites such as [URL] I want to be able to block them on all computers on my network including an iPod Touch my son has so this is the reason I prefer to block them through the router instead of on the computer itself. Is there any way I can do this?
View 1 Replies
View Related
Mar 11, 2010
I am having problems with Preview and Snow Leopard. I can use Quick View to view jpeg files, but when I open them with preview. It does not display the correct image. It just displays a gray block. The only way to resolves this is to delete the preview prefernce files, and then it works. But after a couple of restarts it goes back to not displaying the correct image.
View 4 Replies
View Related
May 2, 2012
I recently started a position where the previous person left me very little information. I am not familiar with hosting locally as I have always used GoDaddy.  There are several sites set up, so I have some "template" to go off of, but I need the basics. If i purchase the domain somewhere and the multiple sites are hosted on a single IP, how can I direct to a specific folder? Do I just create a folder within the volume all others are then make it a shared folder? Set the protocol options to match one that is alread there?Is there a beginers guide to this, and all the settings and options available somewhere?Â
Info:
Mac OS X (10.6.8), Mac OS X Server
View 3 Replies
View Related
Apr 19, 2012
It has, in fact, gotten worse and I need to start the thread again. Earlier, I started up my computer and noticed that is was very slow to boot up, the Dock was missing and it was generally slow and unresponsive. Also, the machine would not shut down or restart unless I forced it to with the power button. Â
" Safe Boot , (holding Shift key down at bootup), use Disk Utility from there to Repair Permissions, test if things work OK in Safe Mode.Then move these files to the Desktop...Â
/Users/YourUserName/Library/Preferences/com.apple.finder.plist
/Users/YourUserName/Library/Preferences/com.apple.dock.plist
/Users/YourUserName/Library/Preferences/com.apple.systempreferences.plist
[code]....Â
Is this something very bad? I goggled "incorrect block count" and I see some other people have this issue even just today (though not exactly the same).Â
View 14 Replies
View Related
Apr 11, 2012
Is there a limit on how big/long Mac OS X10.5.8's /etc/hosts can be?
Info:
MacBook Pro, Mac OS X (10.5.8), 2.4 Ghz; A1260 model; 15" size.
View 2 Replies
View Related
Feb 8, 2012
On my system (10.6.8) I can edit /etc/hosts and the changes take effect immediately. The problem is that every time I reboot, my changes are overwritten.
Info:
iMac 27" i7 Quad Core 2.8Ghz, Mac OS X (10.6.2)
View 6 Replies
View Related
Apr 9, 2012
I was trying to install a software and edit hosts' files in Terminal to finish the whole process. However I can't find the location of hosts even searching on the net. I tried to put /etc/hosts and /private/etc/hosts/, they were 'no such file or directory' and 'permission denied' !
Info:
Mac Pro, Mac OS X (10.7.3), early 2011
View 6 Replies
View Related
Dec 1, 2010
I can't access the website domainmonster.com from my laptop. All other web is fine. I can get to it via my iphone when it not on my wireless network.
So how do i find out if there is something on my laptop stopping access to this site? T
View 2 Replies
View Related
Mar 24, 2012
can i put a block on in app purchases for my mac
Info:iMac
View 1 Replies
View Related
Jul 12, 2009
I been googling and searching for an answer for this question...and all of them say to go through the router. But I was just wondering if there is a way to block computers from using my wireless? Here is the deal. I have a router set up which uses a WPA password. I live in a apartment building so I gave the password to some of my close friends to use. I monitor who is on my network through just looking at the "shared" section on my finder window. I can tell which computers belong to my friends, but every once in a while, an unknown computer pops up. I believe I have seen 3 unknown computers (PC's) - and they do not use the net frequently. I would like to block these computers when they come up. Is there a way to do this without going into the router settings and adjusting those protocols?
View 8 Replies
View Related
Mar 12, 2012
I can't remember how to block a sender. My obnoxious relative don't we all have one?) changed his email address and now I'm seeing his stuff again. Needless to say I want to block him without him knowing it.
Info:MacBook Pro, Mac OS X (10.5.1)
View 1 Replies
View Related
Mar 16, 2012
After updating Safari to version 5.1.4 on my Mac Pro OS 10.6.8, Safari will not block cookies
Info:Mac OS X (10.4.11), 2 x 2.66 GHz Dual-Core Intel Xeon, 2 GB DIMM
View 2 Replies
View Related
Mar 30, 2012
How can I block all/3rd party cookies in Safari 5.1.4? I've tried Privacy options; however, it appears blocking does not work.
Info:
Safari 5.1.4, Mac OS X (10.7.3)
View 1 Replies
View Related
Apr 2, 2012
block spams at Mail - MacBookPro?
Info:
MacBook Pro, Mac OS X (10.7.3)
View 4 Replies
View Related
Apr 11, 2012
is there a list of IPs to block?
View 1 Replies
View Related
Aug 8, 2008
Turns out that on days when I'm not at work, a co-worker is using my computer to access two specific porn sites. I would just like to block those sites to see if he gets the hint before reporting the problem. I can't just log the computer off when I'm not around.
**Bonus Challenge: Can I redirect him to, say, a page on my own domain that will let him know that he is busted?
These are my specifications:
OS: 10.4
Browser: Safari
Connection: DSL
Network: Hard-wired ethernet, connected to network printer but not to any other computers on the network.
View 5 Replies
View Related
Dec 31, 2010
I recently bought and started using the universal dock on my MBP with my iPod. I'm trying to figure out how to make the remote only work on the iPod, or mac, and not both. I tried syncing it to the dock and while my MBP was off, but it still works on both at the same time.
View 1 Replies
View Related
Mar 18, 2009
Is it possible to change a block size? I have a RAID 0 partition dedicated to video capture. Having blocks larger than the default 4KB would benefit performance. Could not find any options in neither Disk Utility nor Terminal�s diskutil command.
View 6 Replies
View Related
May 7, 2009
Is there a way to prevent a single application from ever connecting to the internet? I have a program that always tries to update itself on startup, but the update breaks it. The preference to never check for updates isn't saved between each quit, and if it detects an update it will start downloading automatically, without my consent.
I've tried using the Security section in SysPrefs to block incoming connections, but that just leaves it stuck at 0% downloaded, instead of stopping the entire process. I'm stuck with disabling Airport, starting the application and getting past the main menu and then re-enabling Airport, which is starting to become a pain. I'll use Little Snitch if necessary, but I only need to block the one application. If there's some kind of Terminal command or .plist file I could edit instead of spending $30 on Little Snitch, I'd like to take that route.
View 8 Replies
View Related
Nov 10, 2009
I have 40 MacBooks in a small private High School. The High School is on a church campus. The school has 4 Airport Extreme's with an SSID of CCHS. On the same campus there are 2 other public WiFi networks. What I want to figure out without having to worry about blocking the Mac Addresses on 2 different routers everytime a new High School MacBook is being used it to setup on the MacBook so it won't connect to those WiFi signals. We use Apple Remote Desktop to monitor the MacBooks and sometimes the students are connected to other network and we can't see their laptops.
We have an Xserve server that all the MacBook's are bound to and can make changes to the MCX records but need to know what I can do in order to make it so they can't connect to these 2 other networks.
View 12 Replies
View Related