Blocking LJToys

From LJToysWiki

Revision as of 17:18, 21 April 2009 by Delph (Talk | contribs)
Jump to: navigation, search

This page started out life as a LJ post - http://community.livejournal.com/ljtoys/17298.html


An esoteric problem some people have mentioned recently is that of finding a reliable way for LJToys to ignore your hits to your own journal. This problem crops up when you hit your own friends or journal page fairly often and end up spamming your readers page to death with hits. You can (kind of) hide these with the "hide hits to my friends/cf" option and the IP filters but I've come up with a much neater solution...

Along with their hit, most browsers send a string detailing their name and any special modules installed. It's called the HTTP User Agent. Some browsers - at least FireFox and IE - allow you to modify this string. This gives us a way to identify you as you and not record hits to your own bugs.

To set this up, add the following string to your useragent:

ljt_ignoreme:<my_uid>

Your uid is a number which should appear at the bottom of every page once you're logged into LJToys. For example in my case I'd add the following to my browser's UserAgent:

ljt_ignoreme:1

The effect of this is to prevent hits from my browser to bugs owned by LJToys user 1 from being recorded.


In FireFox

One of the easiest ways to change your useragent without getting your hands dirty, would be to install the Useragent Switcher extension for Firefox. [1]

Once it's installed, you can simply click on your Tools menu, then on User Agent Switcher. Chooe Options, then Options again, and add a new useragent with the following information:

Description: Default-NoLJToys
User Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.0.8) Gecko/2009032609 Firefox/3.0.8 ljt_ignoreme:YOUR_USER_ID
App Name: Netscape
App Platform: 5.0 (Windows; en-US)
App Version: Win32

Note: YOUR_USER_ID will be replaced with your unique user ID found at the bottom of each non-wiki LJ-Toys page.

Finally, after you've added the new Default-NoLJToys Useragent, you can choose that from your User Agent Switcher menu.

In Safari

In IE

Nobody in the world should still be using IE. Try Mozilla FireFox instead.

From LJ User coldagain:

So, here's what to do if you have something like IE6:

  1. Do a search for regedit.exe (or find it in your 'Windows' folder), run it.
  2. Follow the following path through the folders: HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Internet Settings\User Agent\Post Platform
  3. While you've got 'Post Platform' highlighted (whoever said I was a geek in the first place?) go: Edit->New->String Value
  4. A new value-thingy (still not a geek, just stubborn) will pop up in the folder; (re)name it to ljt_ignoreme: (put in your number as explained above), and... that's it.
  5. Open a new IE window for the test run!! and you should be good to go. (You can check if it's working by copying javascript:document.writeln(navigator.userAgent) to the address bar and seeing if the ljt_ignoreme line is showing up in the list there.

...Why someone couldn't have typed this up years ago is beyond me; I'm the ultimate stubborn not-geek and it took me an hour to think up what the heck needs doing once I'm registry-editing the Post Platform folder.

Save the not-geeks from head trauma next time, folks, please please, and just write up the hundred words it takes to do simple things like this - which are far from self-explanatory, what with one page saying something about a need to 'add subkeys' and the other explanation saying 'add a string' (and adding a 'string' to a new 'key' - does not work *bangs head on first available hard surface*).

But, hey, this might not actually work - I could be hallucinating, what with the head ache from hell and all.

P.S. If anyone figures out how to try to tackle this with the latest Opera, comment please?

Personal tools