Indication is a PHP link counter. You can use it to track the number of times a link has been clicked or the number of times a file has been linked. Indication can also be used to hide affiliate links.
The script uses a SQL database. It comes with an admin panel where you can view how many times a link has been accessed. You can also easily add, edit or remove links using the panel. Indication can also display the current count for a link on any web page.
- Password protect links
- Can be used to track links aswell
- Count unique visitors to avoid multiple counts from same user
- Supports displaying of ads before user is redirected to link
- Full admin panel
- Display link counts to users
- Works well on mobile devices due to a responsive layout
- Ignore counts when admin is logged in
- Beautiful notifications system thanks to Bootstrap Notify
If you like Indication and appreciate my hard work a donation (no matter how small) would be appreciated. I code in my spare time and make no money formally from my scripts.
Releases of Indication can be found on the the releases page.
- Create a new database using your web hosts control panel (for instructions on how to do this please contact your web host)
- Download and unzip Indication-xxxx.zip
- Upload the Indication folder to your server via FTP or your hosts control panel
- Open up http://yoursite.com/Indication/install in your browser and enter your database/user details
- Delete the "install" folder from your server
- Login to the admin panel using the username and password you set during the install process
- Add your links
- Indication should now be set up
The main script is called like this: /get.php?id=mylink1
Replace ID with the abbreviation name/number of your URL, for example: http://yoursite.com/Indication/get.php?id=mylink1
So instead of linking to http://yoursite.com/some/directory/mylink1.zip, link to http://yoursite.com/Indication/get.php?id=mylink1
To find this URL select the link and click the "Link" text whilst on the admin page
This will log the count of the link and redirect the user to the file or web page
This script can also be called via $_POST just set the name of your form to "id" and the value to the abbreviation you wish to link
Indication exposes link data via a JSON array. You will need you api key which can be found on the setings page. You need to pass the action "info" and the id of the link you want information for.
Example response:
{"data":[{"id":"1","name":"Link 1","abbreviation":"link1","url":"http:\/\/mysite.com/links/link1.php","count":"384","protect":"1"}]}
PHP Example:
<?php
$test = file_get_contents("http://path.to/Indication/worker.php?api_key=API_KEY&action=info&id=id");
$test_resp = json_decode($test);
$count = $test_resp->data[0]->count;
echo $count;
?>
Open up Indication to add new links, view statistics, update existing links or delete links. The admin panel can also be used to password protect links or to show you the tracking link for a link.
- Before performing an update please make sure you backup your database
- Download your config.php file (in the Indication folder) via FTP or your hosts control panel
- Delete the Indication folder off your server
- Download the latest version of Indication from here
- Unzip the file
- Upload the unzipped Indication folder to your server via FTP or your hosts control panel
- Upload your config.php file into the Indication folder
- Open up http://yoursite.com/Indication/install/upgrade.php in your browser and the upgrade process will start
- You should now have the latest version of Indication
N.B: The upgrade will only upgrade from the previous version of Indication (e.g 4.3 to 4.4), it cannot be used to upgrade from a historic version.
To remove Indication, simply delete the Indication folder from your server and delete the "links", "counts", "users" and "blacklist" tables from your database
Feel free to fork and make any changes you want to Indication. If you want them to be added to master then send a pull request.