Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/dxw/dxw-members-only
WordPress plugin that allows whitelisting certain content and certain IP addresses
https://github.com/dxw/dxw-members-only
govpress
Last synced: 10 days ago
JSON representation
WordPress plugin that allows whitelisting certain content and certain IP addresses
- Host: GitHub
- URL: https://github.com/dxw/dxw-members-only
- Owner: dxw
- License: mit
- Created: 2015-05-14T20:34:11.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2024-05-22T14:44:51.000Z (7 months ago)
- Last Synced: 2024-05-22T15:05:13.481Z (7 months ago)
- Topics: govpress
- Language: PHP
- Homepage:
- Size: 678 KB
- Stars: 2
- Watchers: 24
- Forks: 1
- Open Issues: 5
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# dxw-members-only
This plug-in allows site admins to make their site visible only to users who are
logged in. It also provides options to make selected URIs publicly available, and
to whitelist selected IPs so that they are not required to log in to view protected
content.## Usage
1. Install the plugin: cd wp-content/plugins && git clone https://github.com/dxw/dxw-members-only.git
2. Enable the plugin
3. Visit Settings > dxw Members Only
4. Add URLs to the whitelist
5. Add IP addresses to the whitelist or CIDR ranges (i.e. `192.168.1.1` or `192.168.1.1/24` or `2001:db8::/64`)
6. Choose locations to redirect visitors to (usually /wp-login.php?redirect\_to=%return\_path%)
7. Set max age for the cache-control header that will be served to any users who try to access restricted content when not logged in## Development
To create a development build:
1. Run `composer install` to download dependencies## Versioning
Please publish and tag new releases when they happen.
As well as the individual version tags, we also have a major version tag (currently v4) that tracks the latest release for that major version. That has to be manually updated after you've done the release on GitHub as follows:
(e.g. if you'd just published v4.5.0):
```sh
git checkout main
git fetch --tags -f
git tag -f v4 v4.5.0
git push origin -f --tags
```