Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Private Or Public
Clone this wiki locally
config.php you have to define constant
YOURLS_PRIVATE. It can be one of these two lines:
<?php // Private: define( 'YOURLS_PRIVATE', true ); // Or public: define( 'YOURLS_PRIVATE', false );
define( 'YOURLS_PRIVATE', true ); (default setting) will make your admin area (
http://sho.rt/admin/) protected by a login/password form.
define( 'YOURLS_PRIVATE', false ); will make your admin area free to access to anyone with the URL. Use this only if you're running a test setup, or for a setup shared by colleagues on a private intranet, for instance.
Also, since there is no login/password needed, there will be no Secret Token on the Tools page for the PasswordlessAPI.
Private + Public Interface
If you want to run your own little bitly, you want to:
- set your install to private:
define( 'YOURLS_PRIVATE', true );
- install a public interface in the root directory. There's a sample one provided in the package (see
- read the page about Public Shortening for important tips and advices.