LGF Technical Update - Comment Threads

Charles Johnsonfollow me on twitter
Mon Mar 19, 2007 at 8:49 am PDT • Views: 234

After poring over system logs, I’ve discovered another big drain on our system resources. At the bottom right of each post on the front page are links to versions of the individual post with and without comments. Sometimes people link to the pages with comments, even though they’re only interested in the post itself; and since pages with comments are often much larger than pages without, this is a lot of unnecessary work for the LGF server.

To make it worse, there are web robots out there that ignore the standard ways of blocking them, and will try to crawl through every post at LGF, including reloading pages with comments over and over. Lots and lots of wasted work for our server, slowing down the site for everyone.

So to address this, I’ve implemented some code that checks the referrer information for each page request, and if the referrer is not littlegreenfootballs.com (or if there’s no referrer), the request is redirected to the cached version of the page without comments. Since I installed this code last night, it has already saved more than half a gigabyte of data.

Most people won’t ever notice this; if you haven’t changed your browser settings or installed some kind of firewall that blocks referrers, everything will continue to work as it always has.

However, I’ve received a couple of emails from people who say they’re now unable to access comments pages at all. The most likely cause is that your browser has been set to not send referrer information; if it’s happening to you, check your browser preferences and make sure you haven’t disabled the sending of referrer info.

UPDATE at 3/19/07 9:16:26 am:

Here’s how to make sure Firefox is set up to send referrer information:

1. In the address bar of your Firefox browser type: about:config and hit Enter.
2. In the Filter input field type: network.http.sendRefererHeader.
3. The value for this preference should be 2. If it isn’t, double click on the preference name.
4. Change the value to 2 and hit OK.

UPDATE at 3/19/07 9:18:58 am:

Also, Norton Internet Security and Personal Firewall may block the sending of referrer info by default. Here is information on enabling referrers if you use either of these products: Passing referrer information to specific Web pages in Norton Internet Security and Norton Personal Firewall.

UPDATE at 3/19/07 10:09:06 am:

Firefox users should also check out this extension that lets you manage how your referrer information is sent: RefControl.

UPDATE at 3/19/07 2:42:19 pm:

LGF reader Wicksy made a good suggestion: to set a session variable when a person is redirected to the ‘no comments’ page, so that any further requests for comment threads will be allowed to go through, during that session.

That means that if you’re a live human, you’ll only be redirected once. (Robots usually don’t accept session cookies.) After that you can go in and out of comments at will.

Advertisement

154 comments

^ back to top ^

Name:

Pass:

Register Forgot Your Password? Account Settings Re-send Confirmation (To log in, cookies must be enabled in your browser!)

Turn off ads by subscribing!
For about 33 cents a day, our subscription option turns off all advertisements at LGF!
Read more...


► LGF Headlines

  • Loading...

► Tweeted Articles

  • Loading...

► Tweeted Pages

  • Loading...

► Top 10 Comments

  • Loading...

► Bottom Comments

  • Loading...

► Recent Comments

  • Loading...

► Tools/Info

► LGF Hits

► Resources

► Never Forget

► Statistics

► Tag Cloud

► Contact

You must have Javascript enabled to use the contact form.
Your email:

Subject:

Message:


Messages may be published in our weblog, unless you request otherwise.
Tech Note:
Using the Contact Form

More Partners

Compare Electricity Prices in your area. Texas Electricity is deregulated; you have the right to choose Texas Electric Rates from among many Texas Electric Companies.

Sunbathing in the van allen belt.

TwitterFacebook
LGF Pages
Recent Pages

Daniel Ballard
The Boy Who Played With Fusion
17 minutes ago
Views: 23 • Comments: 0
Tweets: 0 • Rating: 1

lawhawk
Assad Claims Referendum Will Ease Crisis; Brutal Crackdown Continues
21 minutes ago
Views: 23 • Comments: 0
Tweets: 0 • Rating: 0

wrenchwench
Mexico Issues Travel Warning for Los United Estates
25 minutes ago
Views: 38 • Comments: 0
Tweets: 1 • Rating: 1

Daniel Ballard
Independent Voters Are Rejecting Romney
39 minutes ago
Views: 37 • Comments: 1
Tweets: 0 • Rating: 1

Channeling Confucius
6 Terrifying User Agreements You've Probably Accepted
1 hour, 20 minutes ago
Views: 53 • Comments: 0
Tweets: 0 • Rating: 1

Turnabout is Fair Play
The Muslim Brotherhood's Post-Mubarak Anti-Americanism
1 hour, 34 minutes ago
Views: 46 • Comments: 0
Tweets: 0 • Rating: 1

MichaelJ
Daring Fireball: Walter Isaacson's 'Steve Jobs'
1 hour, 49 minutes ago
Views: 62 • Comments: 0
Tweets: 0 • Rating: 0

Turnabout is Fair Play
Chavez Allies Attack New Opponent Capriles as Jewish, Gay
2 hours, 13 minutes ago
Views: 80 • Comments: 4
Tweets: 0 • Rating: 2

Bob Dillon
Radiation Generates Cancer Stem Cells From Less Aggressive Breast Cancer Cells
3 hours, 12 minutes ago
Views: 71 • Comments: 0
Tweets: 0 • Rating: 0

Bob Dillon
Mossad Bolsters Activity in Tunisia
3 hours, 32 minutes ago
Views: 76 • Comments: 0
Tweets: 0 • Rating: 0

 Frank says:

This is Frank Zappa saying, Don't do speed. Speed turns you into your parents. -- this used to play OFTEN as a public service announcement(PSA) on radio station WHFS at 102.5 FM in bethesda,MD.USA during the early '70's. it was followed by a nearly inaudible whisper, "...but grass and acid are o.k.", which may have been frank, or one of the mothers.