Is there someone working on a module to ask an anonymous user their age? And allow or deny access based on the response. I have searched the module discussion forum and have not seen anything like that. Maybe I am searching for the wrong thing. If there is not, could some one point a "newbie module developer" to the right place in the drupal index.php module load/startup to build something like that?

Thank you.

Comments

mwu’s picture

you have a good point. many sites don't register minors.

deanypop’s picture

You may well want to ban anons from viewing/commenting on parts of your site that are meant for adults, or that may be considered questionable. That way, you can include the age verification as part of user registration... And then set roles based on age/DOB?

But, not sure if there are easy/built-in/module-enabled ways to do this already.

SpiesInOrbit’s picture

I know you can do it with an onload function in Javascript. However, I don't want to depend on javascript for that function. As far as restricting parts of the site from anonymous users, the reason I need to block them is not all that large an issue, just something that needs to be asked and I don't want to make it difficult on my customers who are just dropping by.

I think the module could be done in a very configurable way to include a rating from ICRA. This could be helpful to G rated sites with their ratings and so such. I'm just not certain where to start.

Steve
http://myonehitwonder.com/

sepeck’s picture

There isn't an age module, but there is a legal module you may be able to modify for you needs. See the developers handbook for module development instructions.

-Steven Peck
---------
Test site, always start with a test site.
Drupal Best Practices Guide -|- Black Mountain

-Steven Peck
---------
Test site, always start with a test site.
Drupal Best Practices Guide

emdalton’s picture

http://drupal.org/project/validateage

Users will need to register, but you don't have to require any particular user identification if you don't want to.