Gossamer Forum
Home : Products : Gossamer Links : Discussions :

Ability to block submissions based on email address

Quote Reply
Ability to block submissions based on email address
I was wondering if there is an ability to block email address from submitting a link or even better not allowing them to register?

Any ideas?

Thanks.

Vishal
-------------------------------------------------------
Quote Reply
Re: [SWDevil.Com] Ability to block submissions based on email address In reply to
A little plugin could do that quite easily (stop them from submitting, or even stop them from registering)

Afraid I don't have time to write anything though at the moment, as up to my eye in work. Will see if I can come up with something at some point.

Cheers

Andy (mod)
andy@ultranerds.co.uk
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package | GLinks ULTRA Package PRO
Links SQL Plugins | Website Design and SEO | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!
Quote Reply
Re: [Andy] Ability to block submissions based on email address In reply to
Thanks Andy, will be looking forward to it, if it works out.

Vishal
-------------------------------------------------------
Quote Reply
Re: [SWDevil.Com] Ability to block submissions based on email address In reply to
BTW, are you using Gcomm, or just user.cgi when people signup?

Cheers

Andy (mod)
andy@ultranerds.co.uk
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package | GLinks ULTRA Package PRO
Links SQL Plugins | Website Design and SEO | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!
Quote Reply
Re: [Andy] Ability to block submissions based on email address In reply to
Am just using GLink's user.cgi for user registration.

Vishal
-------------------------------------------------------
Quote Reply
Re: [SWDevil.Com] Ability to block submissions based on email address In reply to
Hi,

Ok, please try this plugin.

It will stop users from signing up, when their email address matches your rules.

Simply install it, then open the /admin/Plugins/BlockEmailUserSignup.pm file, and find:

Code:
my @banned_addresses = qw/*@hotmail.com andy.newby@gmail.com/;

You have 2 different options:

1) A simple regex, with * in it - or a real email (i.e a full email address)

Example formats:

Code:
*@gossamer-threads.com
andy@ultranerds.com
vishal@somewhere.com
*.ca

..etc

Thats it =)

(and before Wychwood says that * isn't a valid regex, I've got some regex that changes it to a valid regex format ;))

Cheers

Andy (mod)
andy@ultranerds.co.uk
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package | GLinks ULTRA Package PRO
Links SQL Plugins | Website Design and SEO | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!
Quote Reply
Re: [Andy] Ability to block submissions based on email address In reply to
Thanks alot Andy.

Vishal
-------------------------------------------------------
Quote Reply
Re: [SWDevil.Com] Ability to block submissions based on email address In reply to
I also found a plugin I wrote a while back (BlockEmails), which does the same thing, but only direct marches (i.e you can only block specific domains, not wildcards)

Cheers

Andy (mod)
andy@ultranerds.co.uk
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package | GLinks ULTRA Package PRO
Links SQL Plugins | Website Design and SEO | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!