Skip to content

Instantly share code, notes, and snippets.

@nfourtythree
nfourtythree / Password Protect Serverpilot App.md
Last active December 10, 2020 17:20
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
*/