https://github.com/connyduck/donotlink
An anonymous URL-shortener that blocks bots and removes referers
https://github.com/connyduck/donotlink
css html5 javascript php url-shortener
Last synced: about 1 year ago
JSON representation
An anonymous URL-shortener that blocks bots and removes referers
- Host: GitHub
- URL: https://github.com/connyduck/donotlink
- Owner: connyduck
- License: mit
- Created: 2016-07-30T17:40:17.000Z (almost 10 years ago)
- Default Branch: master
- Last Pushed: 2019-06-20T07:29:15.000Z (almost 7 years ago)
- Last Synced: 2024-08-10T14:13:56.848Z (almost 2 years ago)
- Topics: css, html5, javascript, php, url-shortener
- Language: PHP
- Size: 520 KB
- Stars: 62
- Watchers: 11
- Forks: 8
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# DoNotLink
See donotlink in action at [donotlink.it](https://donotlink.it)
## Description
Donotlink is a simple and fast url shortener that blocks search engines from following links and removes the referer.
Linking to websites via donotlink will not improve the sites position in search engines.
## API
send a POST request to https://donotlink.it/api
```
POST /api
url=http://example.com
{
"url": "http:\/\/example.com",
"code": "Y5Yn",
"donotlink": "https:\/\/donotlink.it\/Y5Yn"
}
```
## Installation - Apache
Donotlink requires a database (MySQL or MariaDB) and PHP 7.
### Apache
Create a database and set up the redirect table as specified in the **donotlink.sql** file.
Copy the src directory to the root directory of your domain. Edit the **config.inc.php** file accordingly.
You are ready to go.
If you do not use donotlink under the root of your domain, **.htaccess** redirects and **robots.txt** rules will not work anymore.
### nginx
TBD
## Libraries
[clipboard.js](https://github.com/zenorocha/clipboard.js)
[hashids.php](https://github.com/ivanakimov/hashids.php)
## License
Licensed under the MIT License
## Author
Twitter: [@ConnyDuck](https://twitter.com/ConnyDuck)