Skip to content

Instantly share code, notes, and snippets.

View derekcavaliero's full-sized avatar
🫠

Derek Cavaliero derekcavaliero

🫠
View GitHub Profile
@nfourtythree
nfourtythree / Password Protect Serverpilot App.md
Last active February 6, 2025 21:58
Password Protect Serverpilot App

How to password protect your Serverpilot app

This is a quick (rough) guide on how to protect a Serverpilot pilot app with auth basic

1. SSH into your Serverpilot Server

ssh SERVERPILOTUSERNAME@your.server.ip.address

2. Create a htpasswd file in your app

@benmay
benmay / single-user-loggin.php
Last active March 14, 2019 17:51
Ensures only one user at a time can be logged into WordPress, ie, 2 people can't login using the same account.
<?php
/*
Plugin name: Single user login
Plugin URI:
Description:
Author: Ben May
Author URI:
Version: 0.1
*/