Want to restrict access to your blog to friends and family only, but don’t want the hassle of everyone remembering (and forgetting!) usernames and passwords? Friends Only requires users to “log in” with their email address before seeing anything in your blog. It’s not particularly secure, but it’s a great way to make sure that random people don’t have easy access to your blog.
This plugin also blocks access to RSS and Atom feeds. If you want to re-enable the feeds on your blog, you’ll have to use the Feed Wrangler WordPress plugin to create unique URIs for your feed (this plugin is set up to allow Feed Wrangler feeds through). See FAQ for details.
Also, make sure that each email address is on its own line, and without any decoration (email@example.com is okay, but “Some One” [firstname.lastname@example.org] is not).
You can also use your own custom CSS. See FAQ for details.
- Activate the plugin through the ‘Plugins’ menu in WordPress
- Enter the list of addresses that you want to allow under Settings -> Friends Only (learn more about custom settings in the FAQ)
- Rate the plugin at https://wordpress.org/extend/plugins/friends-only/
- How secure is this plugin?
Not very. If someone can guess an email address, then they can get in. Also, I’m pretty sure the plugin isn’t hacker-proof. But it definitely helps keep out the random people you don’t want looking in.
Note: the permitted address list in your WordPress database is not encrypted in any way.
- How can I re-enable RSS/Atom feeds?
This plugin also blocks access to feeds (because WordPress has standard feed URIs that can be easily guessed by people you might not want seeing your blog).
If you want to re-enable feeds on your blog, you’ll have to use the Feed Wrangler WordPress plugin to create unique URIs for your feed (Friends Only is set up to allow Feed Wrangler feeds through). Please note that the URI for FeedWrangler feeds must be in the format http://blog.com/?feed=secretname (and not http://blog.com/feed/secretname).
- Can I send login notifications to multiple email addresses?
Yes, just separate the addresses by commas.
- Do I have to use email addresses as the login credentials?
Actually, you can use anything you want. If you wanted to give Lady Gaga access to your holiday blog, but didn’t know her email address, just add the line “ladygaga” to the permitted address list and then give her a handwritten note with the site URL and username written on it next time you see her at a party.
Just note that login credentials are not cases sensitive (“LadyGaga” is the same as “ladygaga”), and you can’t use spaces (No “lady gaga”, please).
- Can I use my own CSS?
Yes. Open the login page in your web browser, and then look at the source. You’ll see all the CSS styles that are used. Create your own custom CSS file based on this, and pop it onto your web server (ideally, along with your theme). Go to Friends Only settings and then specify the URL for the new CSS file. The custom CSS will now be used instead of the stock styling.
Very simple and effective plugin.
I use this plugin since 2010 on many of my blogs and it never failed. Very simple and very usefull, I really like it. Many thanks Gabe for your ecellent work and support !
I was looking for this functionality, thanks works super!
Maybe you could add coolstuff like:
Using the WordPress login form so the layout that is there is copied (see “Password Protected” plugin).
The ability to send people links with the email in there: email@example.com
But I am super happy thanks again!
Contributors & Developers
“Friends Only” is open source software. The following people have contributed to this plugin.Contributors
- Fixed UTF-8 encoding issues with prompts (thanks schraller!)
- Fixed ‘form resubmission’ bug (thanks schraller!)
- Fixed problem that was preventing RSS feeds from getting through (thanks joebahr!)
- Fixed “from” email address for notification emails to reduce likelihood of messages ending up in spam (thanks goodmanfam!)
- Added support for custom CSS
- Added support for HTTPS WordPress installs (thanks reflow!)
- Fixes and tweaks to the CSS and HTML in the login page
- Settings screen clean-up
- Clarified instructions for how to get FeedWrangler to work properly (thanks aleecek!)
- Other random small bug fixes
- Redesigned session authentication system
- Tweak for twice-login bugfix
- Fixed bug that requires users to log in twice in some WordPress configurations (thanks raywp!)
- Fixed critical bug that would allow users to access a blog without permission
- Allow users who are viewing posts through an RSS reader or email to view media (thanks Joshua Lyman!)
- Disabled notification for failed login attempts when the form is blank (thanks Joshua Lyman!)
- Small performance tweaks (thanks Joshua Lyman!)
- Updated documentation
- Minor bugfix
- Added the ability to notify multiple email addresses (email addresses must be separated by commas) (thanks flyw!)
- Fixed DOCTYPE and HTML language bugs
- Added wp_head() function so that things like privacy settings are honoured (thanks gorky5!)
- Fixed a critical bug that was preventing cron jobs from executing properly with this plugin enabled
- Improved support for extended / Unicode characters (thanks policieuxjp!)
- Added IP address information to notification e-mails
- Minor performance improvements
- Opened up access to XML-RPC to support the WordPress mobile client application (and any other apps that use XML-RPC)
- Added support for the use of HTML entities in messages
- Fixed a bug which prevented users from logging in if there was a space before or after their email address
- Initial release to the WordPress Plugin Directory