Frontend Interface for YOURLS Short URL Program: xw.al

Publish: 2022-03-14 | Modify: 2022-03-14

https://xw.al/ is a short URL service launched by Xiaoz over a year ago. The backend uses the YOURLS short URL program, and the frontend uses the Bootstrap framework.

If you are not familiar with YOURLS, you can refer to my previous two articles:

This time, Xiaoz has contributed the frontend interface of xw.al. Students who need it can follow the WeChat official account of Xiaoz's blog "This Software is Interesting" and reply with xw.al to get the download link.

System Requirements

  • YOURLS has been installed and can be used normally.
  • Redis support is required (including server and Redis extension).

Usage

After downloading, there are three core files:

  • index.html
  • api.php
  • ext.php

Put these three files in the root directory of YOURLS. The content in index.html can be modified, including the navigation menu and other content.

Modify api.php

Log in to the YOURLS backend - Tools - Secure API Calls - Get Secret Signature Token.

And fill in the following place in api.php:

#Please change xxx to your own secret signature token
define("TOKEN",'xxx');

In addition, the following two parameters also need to be modified:

//Default domain, please change it to your own domain, including https://, no need for a trailing /
define("DOMAIN","https://xw.al");
//Daily limit per IP
define("LIMIT",50);

API Calls

In addition to the frontend interface, this UI also supports public API calls. For specific instructions, please refer to the README.md file in the compressed package.

Finally

After the environment is ready, theoretically, you only need to modify the 3 places on the top of api.php to use it. If you have any questions, please leave a comment for feedback. If you need one-on-one technical support, you can contact me on QQ: 337003006 (Note: Free technical support is not provided).


Comments