Waxy.org
Waxy.org is the sandbox of Andy Baio, an independent journalist and programmer living in Portland, Oregon. I created Upcoming.org and some other stuff too.

Contact Me: log@waxy.org or waxpancake on AIM

Waxy Backlinks v0.05

Posted Jun 29, 2002

A couple new improvements to the Waxy Backlinks script. It can now be called from PHP scripts, referrers from some search engines are now excluded by default, and you can set the maximum number of backlinks to display and the minimum threshold of hits before a link gets displayed. Any of these options can easily be changed in the script itself. Many thanks to Joe Utsler and Ben Trott for bug reports. Download Waxy Backlinks v0.05 now! (Installation and configuration details inside.)

To install, you can use the same procedure as before.

To set the maximum number of links to display, change $max_links (default is 10). To change the minimum number of hits before a backlink is displayed, change $min_hits (default is 0, showing all backlinks). And if you want search engine backlinks to display, remove the domains from the @blacklist.

If backlink.cgi is being called from a PHP script:
1. Edit the script, and change $php equal to 1.
2. In your PHP script(s), insert the following line where you want the backlinks to be displayed (change the path to point to backlink.cgi):
<? echo `perl /path/to/cgi/backlink.cgi "$HTTP_HOST" "$SCRIPT_NAME" "$HTTP_REFERER"`; ?>

E-mail any questions or suggestions about it to me, or ask right here. If you want an older version, they're still available (0.04, 0.03).

29 Comments (Add Yours)

Jul 2, 2002
3:41 PM  
mat wrote:

Any feedback on this yet?

I'm going to implement it, er, soon


Jul 2, 2002
3:43 PM  
Andy wrote:

It worked in PHP for Joe. So give it a shot and let me know.


Aug 6, 2002
12:40 PM  
Brad Choate wrote:

Hi-- great script. Working fine over at my site now. I would recommend one change:

Place the parameters to the CGI in double-quotes:

<? echo `perl /path/to/cgi/backlink.cgi "$HTTP_HOST" "$SCRIPT_NAME" "$HTTP_REFERER"`; ?>

I was losing some characters without them (ie: ';' embedded in the query string).


Aug 6, 2002
12:50 PM  
Andy wrote:

Great idea. I'll change it right now.


Aug 28, 2002
2:53 PM  
shiva wrote:

hallo!
i am from vienna (sorry for my english)
your script is very nice..
but count by every reload,
have you any idea ? to change this ?
please let me know about this.
thank you
shiva


Sep 5, 2002
10:28 AM  
Ragnar wrote:

Hi, I tried to install this. I changed only two things in the backlink.cgi:

# The directory where you want to store the backlink files.
# Note: must be writable by your web server
my $backlinkdir = 'http://users.rcn.com/ragnar/dagbok/backlink/';

and

# PHP users should change this to 1
my $php = 1;

Then I added the following to my index:

? echo `perl http://cgibin.rcn.com/ragnar/cgi-bin/backlink.cgi "$HTTP_HOST" "$SCRIPT_NAME" "$HTTP_REFERER"`; ?

But it looks as if this is not working.. any thoughts on that?


Sep 5, 2002
10:35 AM  
Andy wrote:

The backlink directory should be a directory, not a URL. In your case, probably something like '/home/ragnar/htdocs/dagbok/backlink'. Otherwise, I'd recommend using Phil Ringnalda's PHP backlink script.


Dec 7, 2002
7:47 AM  
CurtG wrote:

Works well! Very easy to implement. Thanks!


Jan 16, 2003
3:18 PM  
Richard Evans Lee wrote:

My own attempt to use your script hasn't been successful. The results were so odd I ran my home page through a couple of validators hoping I could figure out what is amiss. I thought the results were odd enough to share.


Jan 16, 2003
3:28 PM  
Andy wrote:

I removed the source of your page from your comment... Looks to me like the script is executing, but you're not pointing to the correct backlink cache directory. It looks like your cache directory is the same directory as your PHP files; not a good thing.


Jan 16, 2003
4:03 PM  
Richard Evans Lee wrote:

I have Dean Allen's Refer running and thought I could use that directory for the cache. I created an empty directory and everything is working fine now.

Many thanks,
Richard


Jan 31, 2003
9:09 AM  
bhw wrote:

Hi,

Having trouble getting it to work. Here's what I did:

--Changed line 16 of backlink.cgi to:
my $backlinkdir = '/usr/local/www/virtual1/66/175/41/14/html/cgi-bin/backlink_cache';

--created said backlink_cache directory in cgi-bin

--set permissions for the directory to 777

--copied backlink.cgi in ascii mode to cgi-bin directory and set permissions to 755

--put the following code in my home page:
<!--#exec cgi="/cgi-bin/backlink.cgi" -->

I thought I was all set, but it doesn't work. Not even an error message. I've got another referral script running now that I want to replace because it hasn't changed in over a month, yet I know I have had different referrals since then.

Can you help? The installation instructions were so clear, I thought I'd get it on the first try!

Also, I have another SSI running on the page, Poll-It, so the cgi-bin folder seems accessible.

Thanks!


Jan 31, 2003
9:33 AM  
bhw wrote:

Okay, I just tried to run the cgi from within my account control panel, and this is the message I got:

edit backlink.cgi
1 Useuninitialized value in substitution (s///) line 37.
edit backlink.cgi

I have no idea what this means or if it's significant.

I still get nothing -- no error message -- on my web page when I load it, however.

Thanks!


Jan 31, 2003
10:16 AM  
Andy wrote:

Looks like it's working now... You needed a minimum of two hits to hit the threshold for referer display.


Jan 31, 2003
12:43 PM  
bhw wrote:

Thank you for the excellent support today!

--bhw


Feb 19, 2003
4:10 PM  
Kiki wrote:

Cool script! It's not working for me though...if you could offer any feedback - I'd appreciate it muchly :)

I did the following:

-->edited the backlink.cgi - my $backlinkdir = '/home5/kreator/justagirlintheworld.com/backlink/backlink_cache';

-->Set my /cgi to chmod 777

-->Created /backlink for the cache and set it chmod 755

-->Put the following line on the page I want the referrers to display: <!--#exec cgi="/cgi/backlink.cgi" -->

You mentioned in an earlier post that you have to have a minimum of two hits before it registers, so I hit my site from other sites that link to me - - and nothing.

What am I doing wrong? Any help is GREATLY appreciated :)


Mar 6, 2003
12:30 AM  
w1 wrote:

is it possible to implement this in blogger (or blog*spot?)?
i'm very new to blogs and website though... i'd just follow the instructions but the only server i have access to, does not allow any server side script.
anyway, i use enetation.co.uk for commenting system if that helps.


Apr 29, 2003
3:21 AM  
roland wrote:

hi, I've tested the script, and it works so far, but:

I have a blog and I want to show the backlinks only on my entry sites and ONLY the backlinks which links especially to this site, e. g.
If someone opens my entry site: www.ronsens.de/100.hmtl than the referers should be shown which are linking to this site

at the moment ALL referers will be shown which has referred to any of the sites of my weblog.

As far as I can see you have realized it on waxy.org as I wished it.

My english isn't the best, so I hope, you've understood what I meant.

In one question: How can I change the scripts that the referer-links will be seperated for each entry-site of my weblog?

Many thanks for any help.


May 30, 2003
6:29 PM  
surf wrote:

What a cool site, Interesting and very helpful.Kind regards.


Jun 18, 2003
3:34 PM  
-b- wrote:

I get this error

Cannot execute using backquotes in safe mode in

Any ideas?


Jul 9, 2003
11:23 PM  
Mochi wrote:

Hi, thanks for the script.
I use it on my Japanese site with

since my server doesn't allow us to use exec command.
But it works great!

Keep up the good work!


Mar 20, 2004
5:47 AM  
Nadia wrote:

Verry interesting script. I will try to install


Mar 24, 2004
10:52 AM  
Shane wrote:

This is the only thing I changed...
# The directory where you want to store the backlink files.

# Note: must be writable by your web server

my $backlinkdir = '/usr/etc/refcash';

# The total number of links you want to display for a single entry

my $max_links = 10;

# The minimum number of hits before a link is displayed

my $min_hits = 2;

I even parsed html to work as shtml, yet still no luck. :(


Sep 23, 2005
3:29 AM  
Web Design Ireland wrote:

Wow, really great script. One of the better backlink checkers that are not applications or the price of diamonds.


May 14, 2007
2:35 PM  
Madd wrote:

please give a demo (example)
thanks


Jun 4, 2008
11:59 PM  
Djgqogxi wrote:

great work dude thx http://www.google.com/notebook/public/03581885750362841494/BDRC_SwoQppP57KQj ">fuck a teen 50559 http://www.google.com/notebook/public/03581885750362841494/BDRt3SgoQscr37KQj ">pantyhose sex porn :OOO http://www.google.com/notebook/public/03581885750362841494/BDRUESgoQguL47KQj ">free lesbian lovers pcnmp http://www.google.com/notebook/public/03581885750362841494/BDRt3SgoQ0Kv57KQj ">young teen ciw http://www.google.com/notebook/public/03581885750362841494/BDRt3SgoQnND47KQj ">sexy woman 377303 http://www.google.com/notebook/public/03581885750362841494/BDR4xSwoQxev37KQj ">xxxcreatures >:-[[[ http://www.google.com/notebook/public/03581885750362841494/BDRt3SgoQoID37KQj ">gay hentai %((( http://www.google.com/notebook/public/03581885750362841494/BDR4xSwoQusL67KQj ">free teen lesbians uwunzt http://www.google.com/notebook/public/03581885750362841494/BDRcDSgoQyoX67KQj ">teen bedding grvko http://www.google.com/notebook/public/03581885750362841494/BDRC_SwoQgob47KQj ">sexy leather clothes 9175


Aug 14, 2008
7:10 PM  
Mell wrote:

I want a backlink script.


Nov 19, 2008
12:39 AM  
delux webcmera sotfware driver download wrote:

comment4, http://geo.ya.com/handcuff1ring/text-277.htm ">antena estereochat, >:-)), http://geo.ya.com/handcuff1ring/text-112.htm ">emerging markets hotel industry, tqbjp, http://geo.ya.com/ring1bandage/text-105.htm ">kimberly clark hotel appleton, =(((,


Nov 19, 2008
1:13 AM  
merchant model wrote:

comment4, http://geo.ya.com/bclannadsite/text-321.htm ">hotel online best hotel brands 2007, 564968, http://geo.ya.com/greyhound1ring/text-312.htm ">educational institute of the american hotel, 298, http://geo.ya.com/schiller1ring/text-351.htm ">comfort inn logos, 202,


 

Leave a comment





Waxy Links
Ads via The Deck
November 18, 2008
Bike Hero, biking a Guitar Hero level in the real world — most likely a commercial viral, and maybe even fake, but does it matter? beyond awesome
Chuck Klosterman reviews Chinese Democracy — mostly posting this just to beat Rex to it
The A.V. Club's 27 popular websites that became books — though they missed Belle de Jour, The Washingtonienne, Fucked Company, Fark, and ZUG
Speed Guitar goes to the Los Angeles County Museum of Art — every hour, on the hour, for one solid minute of metal complete with gothic arch and smoke machine
MGMT's "Kids" on the iPhone Ocarina — "the iPhone Ocarina officially replaces the recorder as the nerdiest instrument I can play"
Mena Trott responds to Valleywag article about their Disneyland vacation — my favorite was Space Mountain Snob
LIFE Magazine photo archive hosted by Google — millions of high-res photos, most never published
Amazon launches CloudFront, their pay-as-you-go CDN — very complementary with S3
November 17, 2008
John Hodgman, Jonathan Coulton, and the Long Winters perform "Tonight You Belong to Me" — "Thank you, normal-sized man."
Jerry Yang stepping down from Yahoo's CEO post — it never really fit him well, though I'll miss his e.e. cummings memos
Woman asks Apple community about an unusual iPhone glitch — no, raunchy photos don't accidentally attach themselves to outbound email
Greasemonkey script to pull WikiDashboard visualization into Wikipedia — I made a LazyWeb plea for this last week, and Paul Irish came through
Lee Byron's Fireflies, anaglyph 3D game for Mac — part of Kokoromi's Gamma 3D showcase of anaglyph games
Flickr Boundaries, tool to explore Flickr's shapefiles — read Tom Taylor's entry for more information
Cooking Mama, the Unauthorized PETA Edition — a strangely obscure target for their attention, with a petition to write to the game's publisher (via)
Boing Boing launches gaming blog, Offworld — good writing in a nice design from Brandon Boyer, former news editor of Gamasutra
"Violet" wins the Interactive Fiction Comp 2008 — play it online; glancing at the charts, it looks like Buried in Shoes was the most divisive
Trailer for J.J. Abrams' Star Trek prequel — looks surprisingly good, but I'm a sucker for origin stories; I even liked Enterprise
What would Depression 2009 look like? — Tim sums up the thought-provoking Boston Globe article
The Pirate Bay hits 25 million simultaneous peers — that's not unique people, but concurrent connections; Napster peaked at 26M users
Peter Hirschberg releases Adventure as a free iPhone app — related: Chasing Ghosts will finally be released on BitTorrent Showtime in December (via)
The Big Picture on the California wildfires — also: first-person coverage on Twitter and YouTube, like this freeway on fire and aftermath
Tim-Tams available at Target until March, first time available in the U.S. — best chocolate cookies ever, the Tim Tam Slam is a chocolaty revelation (via)
JS-909, a Javascript drum machine without Flash — through a hack, it even works in IE 6
November 14, 2008
Esquire's hosting Between, the new two-player networked game by Jason Rohrer — from the creator of Passage
"What's that buzzing noise from my BBQ?" — he thought he was killing a few bees, but ends up annihilating an entire colony (via)
November 13, 2008
Kottke explains how to embed high-quality YouTube videos — I knew how to save, link, and change the default, but the embedding hack was new to me
Web 2.0 Origami — lazyweb, please build a converter that creates folding patterns from an uploaded image
Pixar's Burn-E short on YouTube — here's an interview with the director
Valleywag folded into Gawker, all but Owen Thomas laid off — I won't miss it; they hurt a lot of good people and interesting projects in the quest for pageviews (via)

Andy Baio lives here. Some rights reserved, for your pleasure.