Verification forms and scanners

I created a website about a beer brand and had to provide an age check page. The validation script is written in PHP and uses sessions to store the control variable. The script works so that no matter what link you try to enter into the website, it will take you to the checkout page first. The check is very simple. There are 2 buttons: "I'm under 21" and "I'm over 21". If you click the latter, you can browse the website.

After a while, I found that the web crawlers were unable to pass the verification page. I checked the website with google webmaster tools and only text content was viewed from the checkout page.

I read somewhere that crawlers cannot submit form buttons, right?

Given the fact that age check pages are useless anyway, perhaps I should just leave it as the start page, but don't prevent it from being moved, for example. from links to subpages?

+2


a source to share


2 answers


Why not make link buttons instead of submit buttons.



+4


a source


Just check that the age check page finds the main crawler user agents and redirects to the main content page. You can set any variables automatically in the same block of code.



+2


a source







All Articles