Scoop -- the swiss army chainsaw of content management
Front Page · Everything · News · Code · Help! · Wishlist · Project · Scoop Sites · Dev Notes · Latest CVS changes · Development Activities
Semi password protect scoop site Feature Requests
By singing fish , Section Code []
Posted on Mon Feb 02, 2004 at 12:00:00 PM PST
I have a location based scoop site which will be used by a small number of academic researchers, and I'd like to make it so that only individuals who are logged in can access the scoop portion of the site, effectively disabling anonymous users. I really don't want to use .htaccess files as I don't want my users to have to log in every time they use the site. I will only have a small number of users, so I'm happy to hand roll the account creation process. What I was thinking was that:
  • http://here.mydomain.edu.au is accessible to all.
  • http://here.mydomain.edu.au/login.html provides a page to login to the scoop part of the site.
  • All requests to http://here.mydomain.edu.au/scoop/* from non-logged in users get redirected to the login page.

I've had a look at Scoop.pm, which seems to be the place to modify the code in, but I'm really not sure where to start the modificatoin process.
I tried to post a message to scoop help several times, but was thwarted by the mailing list telling me they couldn't verify my email address, so I've posted here instead. Thanks for any help.
Kieren

< I seem to have broken my topic images... | Developer's meeting notes >

Menu
· create account
· faq
· search
· report bugs
· Scoop Administrators Guide
· Scoop Box Exchange

Login
Make a new account
Username:
Password:

Related Links
· Scoop
· More on Feature Requests
· Also by singing fish

Story Views
  34 Scoop users have viewed this story.

Display: Sort:
Semi password protect scoop site | 12 comments (12 topical, 0 hidden)
I can think of one fairly easy way (none / 0) (#1)
by janra on Mon Feb 02, 2004 at 10:37:16 PM PST

although it involves code that Mostly Harmless hasn't yet submitted to CVS...

There's a variable called safe_mode - at the moment, when turned on, only superusers are allowed into the site; everybody else gets an HTTP 502 error code. You can have apache generate a custom error page and put the login form on that; once the user is logged in and has a cookie, they'll see the site normally. There's only the login process that they'd usually have with Scoop, not the typical HTTP auth process where if they close the browser they're "logged out" again.

The bit that MH did but hasn't yet submitted makes safe_mode access based on a permission. So you could create your users and put them in a group with permission to access the site in safe mode...

I'll harass MH to submit it :-)

--
Discuss the art and craft of writing




I don't think this requires touching code (none / 0) (#3)
by panner on Tue Feb 03, 2004 at 06:18:10 PM PST

It seems to me like this could be done through a combination of themes and permissions. Granted, it's not a simple setting, but I think it'll be less involved than hacking the code. I also don't have time to figure this out entirely right now, so I'll just outline what I'm thinking about and let someone else tear holes in it.

First, you'll want to take away all of the Anonymous group's permissions, including setting all of the the section perms for them to Hide or Deny. That way they won't be able to view anything, which I suppose accomplishes most of what you want.

Then, to make it easier to use, you could use themes to show Anonymous users a different main page than regular users. You could make index_template be just a login box for anonymous users, and make all the other _templates blank so that any other page a user hits has nothing. Then they would have to login to see any part of the site.



--
Keith Smiley



Best Dissertation (none / 0) (#5)
by julianamartin on Mon Oct 03, 2016 at 08:17:36 AM PST

Thanks for it Janra, I too faced the same problem and now I know the solution. I looked up on http://bestdissertationfromemily.blogspot.com/ as well and the had the very solution there, I just wanted to double-check.



payday loans carson (none / 0) (#6)
by Pervez on Sun Apr 08, 2018 at 01:32:39 AM PST

Thank you made for penning relating to chiropractic medical doctor. The room unless you may well without a doubt every person protected which kind concerning figures designed because desired training. You may stick to the web payday loans carson Along with perform the internet site.



best kitchen renovation near me (none / 0) (#7)
by Pervez on Sat Mar 09, 2019 at 07:59:31 PM PST

An impressive articles and other content! The very best quality internet site goes along with manufactured the very best quality articles and other content. All the best mainly for continuing to keep you and me latest in substantially invaluable together with completely unique practical knowledge. By now adopt in this best kitchen renovation near me Ideal for individuals all the best!



open arms (none / 0) (#8)
by hymanbarnes on Wed Oct 21, 2020 at 01:52:42 AM PST

I can type any word for password and it works. landcaping



sophisticated explanation (none / 0) (#9)
by paulgraham793 on Wed Dec 16, 2020 at 06:37:53 AM PST

This is pretty safe depending on the security situation of where you have a site. https://www.lawnscapespro.com/



prevents against slowhacking (none / 0) (#10)
by richardpatterson on Fri Jan 01, 2021 at 09:08:21 AM PST

I now have all files that should be private with the file and it works great! Click Here



you are soo good (none / 0) (#11)
by marvinugang on Wed Jan 06, 2021 at 01:59:28 AM PST

Prevents against slowhacking if that is a problem you are looking to guard against. deeptissuemassage.me



Freetubespot (none / 0) (#12)
by hasim khan on Tue Feb 20, 2024 at 06:11:07 AM PST

At its core, Freetubespot is not just a streaming platform; it's an immersive universe where viewers can escape into the world of entertainment with just a few clicks.



Semi password protect scoop site | 12 comments (12 topical, 0 hidden)
Display: Sort:

Hosted by ScoopHost.com Powered by Scoop
All trademarks and copyrights on this page are owned by their respective companies. Comments are owned by the Poster. The Rest © 1999 The Management

create account | faq | search