Custom URL shortener
Go to file
Florine W. Dekker 8bcaa012b5
Get rid of confusing "affiliated" wording
2024-04-24 11:09:00 +02:00
dist Get rid of confusing "affiliated" wording 2024-04-24 11:09:00 +02:00
.gitignore Remove phpliteadmin 2023-03-28 14:06:27 +02:00
LICENSE Update repository URL 2022-02-28 17:40:59 +01:00 Remove phpliteadmin 2023-03-28 14:06:27 +02:00

A custom URL shortener.



# Run local PHP web server
$> cd ./dist
$> php -S localhost:8080 ./index.php


Copy these files into the desired directory. There's a few hardcoded URLs in there that you'll have to fix yourself. One day I'll create a config file for that. The database at .links.db is automatically created when you visit the main page.

You can access the database from the command line using something like VisiData.



GoatCounter is disabled unless the .goat.token and .goat.url files exist.

  • Add your GoatCounter API token with "Record pageviews" permission in the .goat.token file.
  • Add the URL of the /count API endpoint in .goat.url, e.g.
  • Add IP addresses that should not be counted to .goat.ignore, separated by newlines.