Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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: 3 months 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 (over 8 years ago)
- Default Branch: master
- Last Pushed: 2019-06-20T07:29:15.000Z (over 5 years ago)
- Last Synced: 2024-07-18T15:30:46.365Z (4 months 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)