Flynntes / Sleeky

🎨 A sleek and simple frontend & backend theme for YOURLS

Home Page:http://sleeky.flynntes.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

How can I prevent non-admins from adding links?

wyfang opened this issue · comments

Is there a way to temporarily turn off the guest add link? Sometimes encounter robots automatically add advertising links.

Hi! I encountered the same thing. Pages of nonsensical links. The best way to eliminate that is to change the frontend UI to remove the input forms. Plus you can customize it to your liking! In the main directory of the docker files is "index.php". You can customize this to your liking as this is what shows when the home page loads.

Here is sample code you can use for now until you want to spend time customizing:

<html>
 <head>
  <title>Shortlinks</title>
 </head>
 <body>
 <div class="body">
 <h1>Welcome!</h1>
 <h2>If you cannot find the correct shortlink or need your own, contact the admin</h2></div>
 </body>
 <style>
     body{
         background: #DDF52B;
     }
     
    h1, h2 {
        display: flex;
        align-items: center;
        justify-content: space-evenly;
    }
    
    .body{
        padding: 10em 0 10em 0;
        background: #FFFFFF;
    }
    
    
 </style>
</html>

Best Wishes!