Firefox

Spread Firefox Affiliate Button

Saturday, June 19, 2010

Does the Internet Need a ‘Kill Switch’?

Senator Joseph Lieberman

MATTHEW CAVANAUGH/epa/Corbis

A proposed bill could effectively give the president an Internet “kill switch.”

Senator Joseph Lieberman has proposed the Protecting Cyberspace as a National Asset Act (PCNAA), a bill that would give the president the power to control or even shut down the Internet in emergency situations. Citing the need for cybersecurity, Lieberman said in apress release that the U.S.’s “economic security, national security and public safety are now all at risk from new kinds of enemies — cyber-warriors, cyber-spies, cyber-terrorists and cyber-criminals.”

The bill requires that U.S.-based companies such as Google and Yahoo, as well as broadband providers and software firms, comply with any and all measures that the government sees fit in an emergency.

Technology trade association, TechAmerica, has already expressed worry at the level of control the bill would grant the president if passed — levels that could have “unintended consequences.” Other countries are also decrying the bill, fearing the impact on their own security if the U.S. were to shut down essential parts of the Internet. (via CNET)

How to block ads or annoying services like Tynt in any browser, on any computer -- without additional software


For the purposes of this short guide, we're going to use Tynt as our target service to block. Remember, you can use this method to block anything. Simply apply the steps used here to put the kibosh on whatever other services or sites you choose.

If you're unfamiliar with Tynt, it basically appends an "

attribution" link to any text copied off of a page that uses it. The usual user-response when this happens is an audible cursing of the site using it and a quick deletion of the added link.

While the site owners who use Tynt tend to claim they're doing it to ensure proper attribution, it's actually more about getting exposure and linkbacks. Anybody who's come across this annoyance can attest to the fact that it's not making anything proper or easy for the person doing the copying -- and contrary to the beliefs of the ultra-paranoid, a user shouldn't be branded a thief and plagiarist just for copying and pasting text.

Tynt works by using a JavaScript that's hosted on Tynt servers; it's called by code embedded in the page that's using it. The script itself is at tcr.tynt.com, so if your browser never connects to that server, the script won't load. What we're doing here is adding that hostname to a list of addresses on your computer that don't require DNS lookup. It's called your hosts file, and it's extremely useful, especially for little problems like this that crop up from time to time. Using this file, you can tell your computer that anytime it sees tcr.tynt.com, it should look straight to the IP that you give it (instead of using a DNS query). In this case, the IP address we're giving it is 0.0.0.0 -- which is a null address that will instantly fail to resolve.

Update:This post originally used 127.0.0.1 as the IP to point these services to, but as one of our commenters has pointed out, 0.0.0.0 is a slightly better option. You'll also find most pre-made lists of ad networks use 127.0.0.1 as well -- both addresses work fine, but 0.0.0.0 is preferable due to being null. Requests sent to 127.0.0.1 may be retried several times before failing. When a request is made to the null address, it fails immediately. Happy blocking! (Thanks, Stinlen56.)

Already know all about adding entries to your hosts file?

Just add this line: 0.0.0.0 tcr.tynt.com

If you've never touched your hosts file before and need a little help, here's how to do it in Windows, Mac OS X, and Linux:

Windows:

Windows is a bit annoying when it comes to system files, so depending on which version of the OS you're using, it could be in a different place.

For XP:

1. Open "My Computer" and navigate to c:\windows\system32\drivers\etc\ 2. Right-click on the file called "hosts" -- click Open 3. When prompted to choose an application to open the file, choose Notepad. 4. You should see one line at the bottom that reads 127.0.0.1 localhost 5. Add a line underneath it that reads 127.0.0.1 tcr.tynt.com then save the file.

When you're done, the bottom of your hosts file should look like this: 127.0.0.1 localhost 0.0.0.0 tcr.tynt.com

For XP Pro, you should be prompted for an admin password before editing the file. Otherwise, the process is the same as it is for XP Home. For NT/2000 systems, change c:\windows\ to c:\winnt\, and everything should fall into place accordingly.

For Windows 7 and Vista users, it's again in c:\windows\system32\drivers\etc\, but there's a slight twist to opening it. This time, you'll have to right-click on Notepad (it should be somewhere in your Start menu), and choose "Run as Administrator" from the resulting pop-up menu. That should open Notepad with elevated user-privileges, allowing you to edit system files. Now go to File and chooseOpen. Either navigate to the folder or simply enter c:\windows\system32\drivers\etc\hosts in the field available, and it should open the file for you to edit. Now, you just add the line and save the file!

Mac:

It's a sad fact that most Mac users don't even realize they're running a UNIX system. OS X keeps its hosts file in the same place as all other UNIX systems, as well as their Linux cousins; it's always/etc/hosts, and there are any number of ways to edit it.

For those of you who are savvy with the command line, just edit /etc/hosts with your text editor of choice as root (either using su or sudo). For the non-savvy out there, here's a quick breakdown using TextEdit:

1. Go to Applications, then open the Utilities folder. 2. Open Terminal 3. At the command prompt, type: sudo /Applications/TextEdit.app/Contents/MacOS/TextEdit /etc/hosts 4. Hit the Return key and enter your admin password when prompted.

Now TextEdit should open and display the contents of your hosts file like this:

## # Host Database # # localhost is used to configure the loopback interface # when the system is booting. Do not change this entry. ## 127.0.0.1 localhost 255.255.255.255 broadcasthost ::1 localhost fe80::1%lo0 localhost

Note that it says "Do not change this entry" rather ominously; it's really telling you not to change the entries that are already there. Simply add another line to the file under those entries:

## # Host Database # # localhost is used to configure the loopback interface # when the system is booting. Do not change this entry. ## 127.0.0.1 localhost 255.255.255.255 broadcasthost ::1 localhost fe80::1%lo0 localhost 0.0.0.0 tcr.tynt.com

Save the file, quit TextEdit, and then quit Terminal. Et voila! You've just stopped Tynt from ever bothering you again on your Mac. That wasn't so scary now was it?

Linux:

Like I mentioned before, OS X and Linux distros have a lot in common, so you shouldn't have any trouble locating your hosts file if you're running a Linux box. However, since no two distros are alike, and that includes which text editors are present, it's a bit difficult to explain to new Linux users how to edit their hosts file without knowing what they've got to work with. Generally speaking, most Linux users are more tech-savvy than the average Joe, so I'm going to give you the benefit of the doubt and send you on your merry way with the hostname to add to the file.

add this to the bottom of your /etc/hosts file: 0.0.0.0 tcr.tynt.com

If you have trouble and don't know where to start, here's a quick step-by-step that uses the command line and Vi, an ancient text editor that's almost guaranteed to be on every Linux system in the known universe.

1. Open a terminal app, usually something like XTerm. 2. At the command prompt, enter sudo vi /etc/hosts 3. Enter your admin password when prompted.

The file will display for you. Now, using the arrow keys, move the cursor down to the very last line and over to the last character of the entry there. It will probably be hovering over the last letter of a word (probably "localhost"), and it won't move past the word. This is where you press the i key, which will toggle insert mode. Now, you should be able to move the cursor one more space to the right so that it's no longer over the last character of the word in that entry. Hit Enter to make a new line in the file.

Now, type (carefully) 0.0.0.0 tcr.tynt.com, and then hit Enter again to give it another new line underneath your new entry. Hit the Esc key to exit insert mode, and then hold the Shift key and typeZZ to save and exit Vi.

That's it!