It is currently Tue Apr 16, 2024 4:15 am

All times are UTC - 7 hours [ DST ]

Recent News:



Post new topic Reply to topic  [ 7 posts ] 
Author Message
PostPosted: Sat Apr 16, 2011 1:51 pm 
Offline
Newbie
Newbie

Joined: Sat Apr 16, 2011 1:38 pm
Posts: 4
Thanks: 1
Thanked: 1 time in 1 post
Is it possible to only allow a user to be able to see the blog after they have logged in (to the blog, or the server). The blog I have set up is intended to handle safety information reporting for H & S purposes within our small company and I would like it to be accessible remotely but only after log in for specified users within the company.


Top
 Profile  
Thanks  

Attention Guest: Remove this ad by Registering with the MediaSmartServer.net Forums. It's Free!
PostPosted: Sat Apr 16, 2011 2:46 pm 
Offline
Founder
Founder
User avatar

Joined: Tue Jul 31, 2007 11:54 am
Posts: 10735
Location: Fort Collins, Colorado
Thanks: 630
Thanked: 931 times in 885 posts
That's really a Wordpress question and not specific to the WHS Add-In. A google search turned up this:
http://wordpresshero.com/hacks/secure-a ... blog.html/

You could also create or modify the web.config file to require authentication from a user on the WHS, or possibly through .htaccess files though I've not personally set those up with IIS.

_________________
Alex Kuretz
Remote Notification: Monitoring and alerting for your Home Server via email, Twitter, text message, RSS, push notifications, and on your Mac desktop
Have you tried our Add-Ins?


Top
 Profile  
Thanks  
The following user would like to thank yakuza for this post
loadcontrol
PostPosted: Sat Apr 16, 2011 2:59 pm 
Offline
Newbie
Newbie

Joined: Sat Apr 16, 2011 1:38 pm
Posts: 4
Thanks: 1
Thanked: 1 time in 1 post
Thanks very much for the prompt reply. I had a scour of the Wordpress places but you seem to uncovered exactly what is needed. I just have to work out where all these files are in the WHS Wordpress installation!


Top
 Profile  
Thanks  
PostPosted: Sat Apr 16, 2011 3:01 pm 
Offline
Founder
Founder
User avatar

Joined: Tue Jul 31, 2007 11:54 am
Posts: 10735
Location: Fort Collins, Colorado
Thanks: 630
Thanked: 931 times in 885 posts
Let us know how you get on with this, we can try to help if you get stuck. :mss:

_________________
Alex Kuretz
Remote Notification: Monitoring and alerting for your Home Server via email, Twitter, text message, RSS, push notifications, and on your Mac desktop
Have you tried our Add-Ins?


Top
 Profile  
Thanks  
PostPosted: Sat Apr 16, 2011 4:32 pm 
Offline
Newbie
Newbie

Joined: Sat Apr 16, 2011 1:38 pm
Posts: 4
Thanks: 1
Thanked: 1 time in 1 post
I seem to have an error generated by the file copied from the post you pointed me to. When I activate the plug-in (found all the files and edited as suggested, I think) I get the following error:

Parse error: syntax error, unexpected ';' in C:\Inetpub\wwwroot\blog\wp-content\plugins\ac_authenticator.php on line 25

The line in question is this line as copied from the post:

if(‘wp-login.php’ != $pagenow && ‘wp-register.php’ != $pagenow) add_action(‘template_redirect’, ‘ac_auth_redirect’);

And this is the version in my ac_authenticator.php:

if('wp-login.php' != $pagenow && 'wp-register.php' != $pagenow) add_action('template_redirect', 'ac_auth_redirect');

I just changed the type of quotes. Any thoughts?
As I am using the most up to date version of Wordpress, I am wondering if there is a further incompatibility. Thanks again for the reply.


Top
 Profile  
Thanks  
PostPosted: Sat Apr 16, 2011 5:00 pm 
Offline
Newbie
Newbie

Joined: Sat Apr 16, 2011 1:38 pm
Posts: 4
Thanks: 1
Thanked: 1 time in 1 post
Strange how things work! I went back to the wordpress plug-in directory and looked up 'authenticator' to see if there was a new version of this. There wasn't - BUT I found a plug-in called 'Members Only' which does exactly what was wanted.

If you do install and activate this then you need to go to the admin dashboard and look for the 'members only' tab. On that tab there is a tick box to 'switch it on'.

Works like a charm.

Thanks again for your support and encouragement ...


Top
 Profile  
Thanks  
The following user would like to thank loadcontrol for this post
yakuza
PostPosted: Sat Apr 16, 2011 9:41 pm 
Offline
Founder
Founder
User avatar

Joined: Tue Jul 31, 2007 11:54 am
Posts: 10735
Location: Fort Collins, Colorado
Thanks: 630
Thanked: 931 times in 885 posts
Sweet glad you got it sorted!

_________________
Alex Kuretz
Remote Notification: Monitoring and alerting for your Home Server via email, Twitter, text message, RSS, push notifications, and on your Mac desktop
Have you tried our Add-Ins?


Top
 Profile  
Thanks  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 7 posts ] 

All times are UTC - 7 hours [ DST ]


Who is online

Users browsing this forum: No registered users and 9 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB® Forum Software © phpBB Group