Refer 2.1 :: 27 NOV 03
Info regarding Refer spamming
What is it?
Refer is a web application that tracks incoming referrers (visitors who followed a link found elsewhere) to your website.
What does it do?
An up-to-the-minute list of referrers, in reverse chronological order, is displayed on a page. You can see Refer in use here.
What is required?
- PHP 4.1+
- MySQL (any recent version)
- Your MySQL login and password must allow read/write and table creation privileges for your database.
How can I tell if I have those?
Ask your hosting provider.
Will it work on blogspot?
No.
What’s new in the current version?
New in v. 2.1
- Added listing option for search queries from Google, etc.
- Displayed referrers are now url-decoded for readability.
- Small errors, too numerous to list, are now nipped in the bud.
New in v. 2.03
- Fixed a problem with “unknown modifier” messages on some servers
New in v. 2.02
- Removed a large security vulnerability
- Fixed a problem where Refer was failing with custom table names
- Glimpse view no longer distinguishes between referrers that come from variants of the same url.
- Fixed a problem with filenames containing special characters in the ignore list
- Added the ability to specify directories for Refer to ignore
- NB: Those upgrading from Refer 2.01 should replace all existing files with those from the new release, and re-enter configuration values in refer.php.
New in v. 2.1
- Several error-prevention methods added
- Added ‘glimpse’ views of the top referrers recorded in the past 1, 2, 3 and 7 days
- Referrers from obviously similar pages are grouped more intelligently
- Setup help is now available at all times, not just during install
- Auto-expiry of old referrers wasn't working as advertised, because the author can be a bit dim (thanks to leo at stutarded.com for pointing this out)
- NB: Those using Refer 2.0 should run /refer/setupdb.php again, which will upgrade their Refer database table and leave existing data intact
The database schema used by Refer 2.0 is entirely different from previous versions. It now runs using one optimised database table, and as such should run with a great deal more speed and stability. The code has been rewritten from scratch, repairing several loose problems in 1.x versions. People who experienced CPU seizures with Refer on FreeBSD or OpenBSD servers should now be free of such heartache.
Refer now has an option to auto-expire old referrers from the database, which should reduce disk consumption, and help keep Refer lean and mean.
How does one install it?
- Download refer21.tgz from the link at the right and extract it. Open the file
refer.php
in a text editor and fill in your database information and the handful of required preferences.
- FTP the Refer folder to your server (replacing all existing files if upgrading).
- Open a web browser, navigate to the directory in which you installed Refer, and load
setupdb.php
. In one step, it should create the required table in your database, and present instructions for recording referrers on your site.
- Carefully read the information given to you during installation regarding recording referrers.
- Once referrers have been recorded, you can view them at by loading
index.php
in the Refer directory in your browser.
- If you wish to syndicate your Refer list as RSS, then load
index.php?format=rss
in your newsreader of choice.
- Er, that’s it.
Referrers not being recorded?
Perhaps your pages are not PHP-aware. Create a text file in your web directory called .htaccess (if one exists already, open it) and paste the following inside in the file:
AddType application/x-httpd-php .html .htm