Free Bootstrap Frontend Interface for YOURLS Short URL Service

YOURLS frontendxw.al themeshort URL serviceBootstrap UIYOURLS customization
Published·Modified·

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

For those unfamiliar with YOURLS, you can refer to my previous two articles:

This time, xiaoz is contributing the xw.al frontend interface. Those interested can follow the "This Software is Interesting" WeChat official account of Xiaoz Blog and reply with xw.al to get the download link.

Environment Requirements

  • YOURLS must be already installed and functioning properly.
  • Redis support is required (including both the server and the Redis extension).

Usage Instructions

After downloading, there are three core files:

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

Place these three files in the root directory of your YOURLS installation. You can modify the content within index.html as needed, including the navigation menu.

Modifying api.php

Log in to the YOURLS backend, go to Tools > Secure API Calls, and obtain the secret signature token.

Then fill this token into the following section of api.php:

# Replace xxx with your own secret signature token
define("TOKEN",'xxx');

Additionally, you need to modify the following two parameters:

// Default domain, please change to your own domain. Include https:// but do not add a trailing slash.
define("DOMAIN","https://xw.al");
// Daily limit per single IP
define("LIMIT",50);

API Usage

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

Conclusion

Once the environment is ready, you theoretically only need to modify the three sections mentioned above in api.php to start using it. If you encounter any issues, please leave a comment for feedback. For one-on-one technical support, you can contact me via QQ: 337003006 (Note: Free technical support is not provided).