Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How can I prevent non-admins from adding links? #118

Open
wyfang opened this issue Sep 29, 2022 · 1 comment
Open

How can I prevent non-admins from adding links? #118

wyfang opened this issue Sep 29, 2022 · 1 comment

Comments

@wyfang
Copy link

wyfang commented Sep 29, 2022

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

@bendini20
Copy link

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!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants