Link to home
Start Free TrialLog in
Avatar of burnedfaceless
burnedfaceless

asked on

How to restrict access to pages but still have my content indexed by Google?

I am building a guitar instructional website. It will have lessons, and quizzes to make sure you understand the lesson. I won't let someone move onto the next lesson until they have demonstrated that they understand the concepts that will be important later on, as music theory is cumulative.

How do I restrict their access to future lessons they haven't achieved access to yet while still allowing Google to index the page?
ASKER CERTIFIED SOLUTION
Avatar of Ray Paseur
Ray Paseur
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Terry Woods
There are ways to determine if the viewer of a page is a robot or not, but it is possible for the viewer to provide false information in that regard so you likely can't be completely sure. Given that limitation, will you be satisfied with a technique for robot detection?

There's some code here that does it, though I'm not sure how old it is: http://www.cult-f.net/detect-crawlers-with-php/
Avatar of burnedfaceless
burnedfaceless

ASKER

Thanks Ray, I'll learn Laravel when I'm a little better at OOP.

My website will be nonprofit, I'll accept donations to cover hosting costs but I want to be a developer. I was a Jazz Studies major though and I see a lot of problems with some of the guitar lessons that are out there.

Anyways I'm hoping this website will help me get a job.
learn Laravel when I'm a little better at OOP
Ha!  Me too.  But more on point for your question, forget about learning Laravel and instead just look at the way Jeffrey Way (no pun) has set up his courses.  It's really a good design and I think it would work well for guitar, too.