View Full Version : Age restriction access - over 18s only, but search engines allowed - how?
Spinball
03-01-2009, 09:44 AM
Folks, I want to add a script to my site which requests the visitor to confirm that they are over 18 before they can view pages, but search engine spiders are allowed access so that we get logged into the search engines.
Is there such a mod available? (Haven't found one).
How would I do this, please?
redhawk89
03-01-2009, 10:13 AM
Folks, I want to add a script to my site which requests the visitor to confirm that they are over 18 before they can view pages, but search engine spiders are allowed access so that we get logged into the search engines.
Is there such a mod available? (Haven't found one).
How would I do this, please?
Why don't you just change the registration message for users? It's in the vB language manager I think.
Spinball
03-01-2009, 11:22 AM
That would apply to members, but I don't want guests reading the forums without first acknowledging that they are over 18.
Antivirus
03-01-2009, 03:52 PM
You need to add nofollow tag to any links which reference the page you want to prevent spiders from accessing like so:
<a href="spidersforbidden.php" rel="nofollow">link</a>
This will prevent spiders from crawling the frbidden script.
Spinball
03-01-2009, 04:03 PM
You need to add nofollow tag to any links which reference the page you want to prevent spiders from accessing like so:
<a href="spidersforbidden.php" rel="nofollow">link</a>
This will prevent spiders from crawling the frbidden script.
Thanks, but that's not going to work, either, since I want the 'over 18' check to work on every page (it will have to be using Javascript) and that includes directly typing in the URL.
Mr-Moo
03-01-2009, 05:07 PM
I am somewhat unclear on the reasoning behind having this feature. If I am not mistaken when a search engine crawls your site it also creates a cache in which users can browse. This almost defeats the purpose of age-restriction.
An alternate method is to grab the VBSEO sitemap generator and use that to generate your sitemap and submit to Google/Yahoo/MSN, then continue with the 18 year old user-restriction on every page.
vbplusme
03-02-2009, 09:40 AM
You need to add nofollow tag to any links which reference the page you want to prevent spiders from accessing like so:
<a href="spidersforbidden.php" rel="nofollow">link</a>
This will prevent spiders from crawling the frbidden script.
You are referring to "good" spiders? If the script needs to be off-limits to spiders, would that require a rule in .htaccess ? Just a thought.
Spinball
03-02-2009, 10:03 AM
I am somewhat unclear on the reasoning behind having this feature. If I am not mistaken when a search engine crawls your site it also creates a cache in which users can browse. This almost defeats the purpose of age-restriction.
An alternate method is to grab the VBSEO sitemap generator and use that to generate your sitemap and submit to Google/Yahoo/MSN, then continue with the 18 year old user-restriction on every page.
Ok, it's an adult DVD trading website www.adultdvdforums.com. I don't want to restrict access to spiders cos we need the site to get into search engines. I don't care if people see the content of the site from Google or other search engine caches, but I would like all visitors to the site to go through an 'I am over 18' check before they proceed into any pages. Should have made this clear from the top, sorry.
Marco van Herwaarden
03-02-2009, 10:25 AM
Presenting different content to a SE spider and to regular visitors is considered Cloacking and might get you removed from the SE.
Spinball
03-02-2009, 11:22 AM
Presenting different content to a SE spider and to regular visitors is considered Cloacking and might get you removed from the SE.
Thanks. That could present a bit of a problem. I'll ask Google, I think.
Dismounted
03-03-2009, 04:50 AM
Google already has documentation on this (I keep this link because I know it will be asked often):
http://www.google.com/support/webmasters/bin/answer.py?answer=66355
Spinball
03-03-2009, 05:31 AM
Ah ok, fair enough. Thanks!
I'll leave the site with everyone in the world able to just hit images of porn right off the bat.
1Unreal
03-03-2009, 08:58 AM
<if condition="$post['age'] <= 18">
You're under 18, therefore you are not allowed to view this page.
<else />
The normal page content
</if>
I wouldn't recommend cloaking, although you have probably realised that already :p
Mr-Moo
03-04-2009, 06:40 PM
Block the images from unregistered/unverified users :)
vBulletin® v3.8.12 by vBS, Copyright ©2000-2024, vBulletin Solutions Inc.