Does anyone know how I can ban our computers from using Yahoo? That site is terrible.
This sounds more like a job for a software content-blocker or software firewall, rather than applescript. Applescript doesn’t have a mechanism for listening to the outgoing network requests, so you really don’t have the power to stop a request from going out if there is one you don’t like. There is plenty of content control software out there that can block IP requests on a URL-specific basis.
What kind of environment are you in? If it is a public one like in a school, or even a private one like a business… unless you have policies that explicitly state “no outside internet access allowed”, it sounds kind of sketchy and “big-brother” to me. I suppose if you’re in a prison or preschool, it might be appropriate. Yahoo is one of the largest websites in the world, and telling people not to use it might lead to some problems. Yahoo not only handles tens of millions of peoples’ email accounts, it is also a jumping off point for many research resources, image libraries, business websites and online merchants, and various other resources that your users might not consider quite as “terrible” as you do.
As a web developer (and yahoo user) I’m curious to know what you find so terrible about it. What about it makes your job so much more difficult or unpleasant? I can’t say I’ve ever heard someone complain about yahoo being “terrible”. Perhaps you think it’d be better if we all sign up for AOL accounts instead? In fact, maybe you could install AOL on all your system’s computers. I hear they have great parental controls, so you could keep all your kids in line.