Answers.Body: <h2>Understanding the parts</h2>
  
  <p>There are a few parts to this question - your CRM (CiviCRM, which has your membership list), and your CMS (Drupal, Joomla or WordPress, which has your website pages). Your CMS has <em>Users</em> while your CRM has <em>Contacts</em>. These may match, but you can also have a Contact without a matching User. The CMS controls access to <em>Pages</em>. In order to access restricted pages, the User generally needs to log into the CMS first.</p>
  
  <p>So there are some "dots to join". In your case, </p>
  
  <ul>
  <li>All your Member Contacts will need a matching User in the CMS</li>
  <li>The CMS needs to restrict access for some Pages to some Users</li>
  <li>There are access criteria for the above (User must connect to Contact which has current Membership)</li>
  </ul>
  
  <p>How you implement this depends on the CMS you're using, and what makes most sense for you. (Including details like the CMS in your question will inform the answers you get.)</p>
  
  <h2>Drupal</h2>
  
  <p>There are wiki docs on <a href="https://wiki.civicrm.org/confluence/display/CRMDOC/Creating+a+Drupal+user+for+every+CiviCRM+contact" rel="nofollow">how to sync Contacts to Users</a>. This page looks a bit old - definitely test this process on a development site.</p>
  
  <p>In Drupal there are multiple ways to slice and dice the content access situation ... sorry! Some options would be <a href="https://www.drupal.org/project/content_access" rel="nofollow">Content Access</a> (suited for smaller sites where you have one or two restricted pages), <a href="https://www.drupal.org/project/node_view_permissions" rel="nofollow">Node View Permissions</a> (restrict by member-only content type), or <a href="https://www.drupal.org/node/270000" rel="nofollow">reviewing a longer list of content access options</a>.</p>
  
  <p>(You could also implement your own access restriction using CiviCRM checksums alone, but I think I've given you enough new questions already!)</p>
  
  <h2>Other CMS</h2>
  
  <p>This answer doesn't specify how to do this for other CMS (nor does it give specific instructions for Drupal, just a few options). If you can help improve this answer, you're welcome to edit it wiki style, OR add your own solutions for Joomla / WordPress.</p>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2016-08-14T23:07:56.193Z
Answers.Text: That answer is fine if you assume that we have created a website in Drupal. Issue for us is we havnt, its a standard run of the mill html website that we built from the ground up, so it dosnt rely on Drupal. The website came first, then years later we needed to manage members and hence Civi came later.
Answers.UserDisplayName: Gary Martin
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2016-08-15T00:10:37.507Z
Answers.Text: Sorry this wasn't helpful to you. You didn't specify a CMS in your question - as you can see from both my reply and Coleman's, this would inform the correct answer. I checked through your previous questions and saw some referring to Drupal, so did my best to answer based on the info at hand. [This meta question is worth a look](http://meta.civicrm.stackexchange.com/questions/110/what-are-helpful-pieces-of-information-to-have-when-answering-a-civicrm-se-quest) - I wonder if we could improve the [ask page](http://civicrm.stackexchange.com/questions/ask) to encourage detailed questions?
Answers.UserDisplayName: Chris Burgess
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2016-08-15T00:14:50.163Z
Answers.Text: Gary - I'd encourage you to edit your question and add the CMS detail, hopefully once that info is available you'll get a better informed reply.
Answers.UserDisplayName: Chris Burgess
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2016-08-13T19:47:42.720Z
Answers.LastActivityDate: 2016-08-15T00:12:19.740Z
Answers.LastEditDate: 2016-08-15T00:12:19.740Z
Answers.UserDisplayName: Chris Burgess
Body: <p>We have a website, We also use civicrm for our membership and communications. Now we have our 16000 records entered into civi and all correct, can we restrict access to some member content pages(not written inside civi), Essentially we want to create a login for the member only content, have a script check with civi that the membership is still current, maybe check member id and email then allow access to the pages we want members to have access to. We dont want members to signup and pay for membership because the folks we represent dont do credit cards!! We just want a page or area of our website thats restricted to our members rather than the entire webiverse.</p>
  
  <p>Or am I dreaming that it can be done?</p>
  
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2016-08-13T15:36:26.673Z
Comments.Text: Which CMS are you using?
Comments.UserDisplayName: Coleman
Tags: <civimember>
Title: Member only page-login using civicrm database
ThreadText: # Member only page-login using civicrm database
  
  (Asked by: username_0 on 2016-08-13)
  
  We have a website, We also use civicrm for our membership and communications. Now we have our 16000 records entered into civi and all correct, can we restrict access to some member content pages(not written inside civi), Essentially we want to create a login for the member only content, have a script check with civi that the membership is still current, maybe check member id and email then allow access to the pages we want members to have access to. We dont want members to signup and pay for membership because the folks we represent dont do credit cards!! We just want a page or area of our website thats restricted to our members rather than the entire webiverse.
  
  Or am I dreaming that it can be done?
  
  **Tags:** civimember
  
  > **Comments:**
  > **username_1**: Which CMS are you using?  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_2 on 2016-08-13. Score: 2
  
  ## Understanding the parts
  
  There are a few parts to this question - your CRM (CiviCRM, which has your membership list), and your CMS (Drupal, Joomla or WordPress, which has your website pages). Your CMS has *Users* while your CRM has *Contacts*. These may match, but you can also have a Contact without a matching User. The CMS controls access to *Pages*. In order to access restricted pages, the User generally needs to log into the CMS first.
  
  So there are some "dots to join". In your case,
  
  * All your Member Contacts will need a matching User in the CMS
  * The CMS needs to restrict access for some Pages to some Users
  * There are access criteria for the above (User must connect to Contact which has current Membership)
  
  How you implement this depends on the CMS you're using, and what makes most sense for you. (Including details like the CMS in your question will inform the answers you get.)
  
  ## Drupal
  
  There are wiki docs on [how to sync Contacts to Users](https://wiki.civicrm.org/confluence/display/CRMDOC/Creating+a+Drupal+user+for+every+CiviCRM+contact). This page looks a bit old - definitely test this process on a development site.
  
  In Drupal there are multiple ways to slice and dice the content access situation ... sorry! Some options would be [Content Access](https://www.drupal.org/project/content_access) (suited for smaller sites where you have one or two restricted pages), [Node View Permissions](https://www.drupal.org/project/node_view_permissions) (restrict by member-only content type), or [reviewing a longer list of content access options](https://www.drupal.org/node/270000).
  
  (You could also implement your own access restriction using CiviCRM checksums alone, but I think I've given you enough new questions already!)
  
  ## Other CMS
  
  This answer doesn't specify how to do this for other CMS (nor does it give specific instructions for Drupal, just a few options). If you can help improve this answer, you're welcome to edit it wiki style, OR add your own solutions for Joomla / WordPress.
  
  > **Comments:**
  > **username_0**: That answer is fine if you assume that we have created a website in Drupal. Issue for us is we havnt, its a standard run of the mill html website that we built from the ground up, so it dosnt rely on Drupal. The website came first, then years later we needed to manage members and hence Civi came later.  
  > **username_2**: Sorry this wasn't helpful to you. You didn't specify a CMS in your question - as you can see from both my reply and username_1's, this would inform the correct answer. I checked through your previous questions and saw some referring to Drupal, so did my best to answer based on the info at hand. [This meta question is worth a look](http://meta.civicrm.stackexchange.com/questions/110/what-are-helpful-pieces-of-information-to-have-when-answering-a-civicrm-se-quest) - I wonder if we could improve the [ask page](http://civicrm.stackexchange.com/questions/ask) to encourage detailed questions?  
  > **username_2**: Gary - I'd encourage you to edit your question and add the CMS detail, hopefully once that info is available you'll get a better informed reply.  
  
  ---
  
  