|
|||
![]() |
|
Archives
« On the candidates |
Main
| Changing URLs in comment body »
February 04, 2004New CommentsDue to the Comment Spam I had been getting I decided to edit my comment templates again. It seems comment spammerrs aren’t spamming me to get my attention, but to increase their google ranking with a link. So I am changing all commenter’s urls to redirection links using a little perl script I wrote located at go.cgi:
The script is called as go.cgi?link=www.wherever.com. The very last line redirects someone $link, in this case www.wherever.com. The other stuff includes checking if there is an http:// in the name and adding one if there isn’t. It also checks for a mailto and it uses that if it is present. It also will print up a page saying there is no link if none is specified. I modified the comment parts of my individual archive template to:
This creates two links, one for the e-mail and the other for the url. I couldn’t find a better way to do it since the <$MTCommentAuthorLink$> tag creates a whole link with both tags and a name. This also resolves another issue of mine: it stops the url links in my comments from opening another window. Just a little thing I never liked. Posted by Jeremy at 01:47 AM | Link
| TrackBack (0)
Comments
Post a comment
|
|
|
Archives
February 2004
January 2004 December 2003 November 2003 October 2003 August 2003 July 2003 June 2003 May 2003 April 2003 March 2003
Recent Entries
Awwwww
Citibank and Subjectivity Site update Cheesy Cool Visual Neocons Changing URLs in comment body New Comments On the candidates New ad class
Links
Blogs
Sam Talbot
From the brilliant communist mind.
Tom Tommorow
Great Cartoonist. Great Blog.
Jim Henley
An insightful libertarian.
Atrios
The top liberal blog.
Kos
Interesting political analysis and other rants.
Tacitus
The left's favorite conservative.
Patrick Nielsen Hayden
Luminous Liberal
Many folks
The no war blog.
amptoons
Another Cartoonist
August J. Pollak
Yet Another Cartoonist. This one is still in school.
Adam Felber
Funny. Liberal.
Gene Healy
Man from Cato
Julian Sanchez
Also from Cato
Radly Balko
Libertarian. Well published.
Joshua Micah Marshall
Washington insider journalist
Hesiod
Big Blue Blog
Kevin Drum
A good read even if I can't think of a snarky comment.
Matthew Yeglesias
Claims to be: Philosopher, Psychologist, Antichrist. Really is: Harvard Philosophy Student.
N.Z. Bear
Conservative and creator of the ecosystem.
Kynn
News
The Best News Site
The Paper of Record
Capitol Paper
From accross the pond
er.. newsmax
Failing web mag still puts out some good articles
Funny
nuff said
Bwah ha ha
Snicker
General Tech
News for Nerds. Stuff that Matters.
Great resources from the book publisher.
Excellent data for CSS and HTML
Perl Modules
The web scripting language
Apple & Macintosh
The company itself
Like slashdot but for apple.
Funniest Apple Site
Self explanatory
Entertainment
New York's Blog
Links to some excellent writing
Hysterical Recaps of Shows
More funny things about television
Celebrity Snark
Other
Discussion of current events.
More Discussion
Indescribable
|