Project

General

Profile

Actions

Feature #2814

closed

Restricting Sign-Ups

Added by Matt Gold over 10 years ago. Updated about 10 years ago.

Status:
Resolved
Priority name:
Normal
Assignee:
Start date:
2013-10-03
Due date:
% Done:

0%

Estimated time:

Description

Hi Ray,

We had a spam user security issue last week that resulted in a crash of the server, so I'm looking for ways to restrict sign-ups a bit. I was thinking about restricting registration on NYCDH to people with .edu and .org domains, and than giving people a way to contact us if they wanted to register through another address. Can you please let me know:

1. Am I right that the place to restrict registrations is in Network Admin > Settings > Network Settings > Limited Email Registrations?

2. Where can I find the registration page file so that I can edit it and add a note to people that explains these new registration settings?

Many thanks.

Best,

Matt

Actions #1

Updated by Matt Gold over 10 years ago

Hi Ray --

Can you please help me with this when you have a chance? Thanks.

Best,

Matt

Actions #2

Updated by Raymond Hoh over 10 years ago

Hi Matt,

Apologies for the late reply.

The "Limited email domains" option only works if you specify the full domain (eg. cuny.edu) and not with a top-level domain (eg. .edu). This doesn't work for our use-case so I just wrote a quick plugin to only allow registrations with the .edu and .org top-level domains for email addresses. It is already active on NYCDH.

For no. 2, it isn't possible to add a note without either modifying the registration template or adding a quick plugin to add or change the registration text. Please let me know what you want the text to be and I'll add a quick code snippet to change the text.

Actions #3

Updated by Matt Gold over 10 years ago

Many thanks for your help with this, Ray!

Could you please add this text snippet to the sign-up page, under the email entry box?

"Registrations are currently allowed only for .edu and .org addresses. To register with a different address, please write to to request an account."

Thanks again.

Actions #4

Updated by Matt Gold over 10 years ago

BTW, spam has dropped off entirely since you instituted this. What a relief.

Actions #5

Updated by Raymond Hoh over 10 years ago

I've added the additional registration text on the page. Glad to hear that user spam has dropped off considerably since this change.

Actions #6

Updated by Raymond Hoh over 10 years ago

  • Status changed from Assigned to Resolved
Actions #7

Updated by Matt Gold over 10 years ago

Many thanks, Ray! Would you mind sending me the details of how you did this via email so that I could potentially implement the same solution on other CBOX installs? Thank you.

Actions #8

Updated by Raymond Hoh over 10 years ago

I'll expand the code I wrote into a full-fledged plugin.

Give me up to a day or so.

Actions #9

Updated by Matt Gold over 10 years ago

YOU ROCK!

Actions #10

Updated by Matt Gold over 10 years ago

Also, if you don't mind, please do it on our dime and co-list the Commons as co-author.

Actions #11

Updated by Matt Gold about 10 years ago

Hi Ray --

Can you please remind me whether you ever released this to the WP plugin repo and if not, how I can add it to a new CBOX install at the Graduate Center (translocalcommons.org)? Many thanks.

Actions

Also available in: Atom PDF