Mono Support restrict view of particular blog(s) 

Viewed 11894 time(s), 4 post(s), 5/30/2014 11:48:34 AM - by gstadter
6/3/2014 9:46:04 PM
669 Reputation 67 Total posts

This may seem like an odd idea, but I would like to figure out how to restrict access to a particular blog to a certain role.
I've tried using a <location> tag in the web.config using /blog/posts/%blog-name%, but that isn't working.

I know this is way outside the box, but if anyone has a moment and an idea, it would be very appreciated.

update:  just thinking out loud... could I make a copy of blog.aspx, and leverage the url rewriter to point only the particular blog to use the copy of blog.aspx, and use a <location> tag to restrict access to the copy ?  ..call it blog-blogname.aspx, for example?

1
6/2/2014 3:35:33 PM
669 Reputation 67 Total posts

arg... figured how to just use existing functionality to restrict access(no external manipulation required.)

2
6/3/2014 9:45:41 PM
15993 Reputation 2214 Total posts

Ok, that's great to hear can you please let us know how you did it so we can confirm if this is a good practice ?

Regards

3
6/5/2014 11:51:52 AM
669 Reputation 67 Total posts

You guys did all the work, not me.   8-)
I saw this comment in web.config:
<!-- dynamic blog post rules, can be used regardless of the actual name of the page that holds blog parts -->

I created a folder for the secured blog "/SecuredBlog1/" and created a page in it called Default.aspx.
also created a folder for another secured blog "/SecuredBlog2/" and created a page in it called Default.aspx.
Added Blog Container web parts to each page and set the appropriate slug on each.
Each Blog can have it's own permissions set.

Now, if someone goes to mysite.com/SecuredBlog1/, they either see the blog or are told that access is denied.
All permissions done within MonoX CMS UI(no <location/> tag needed).
I'm not using "/Blog.aspx" as it is, out-of-the-box.

4
This is a demo site for MonoX. Please visit Mono Software for more info.