Answers.Body: <p>Idea for a possible workaround: </p>
  
  <ul>
  <li>Create a group and role for the non-eligible users</li>
  <li>Set up a Drupal block that only shows on this page and only for this role</li>
  <li>put no visible content in the block, but create some JavaScript functionality to prevent non-eligible users to access the form</li>
  </ul>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2016-03-09T08:19:55.083Z
Answers.LastActivityDate: 2016-03-09T08:19:55.083Z
Answers.UserDisplayName: Martin Peth
Body: <p>I have a CiviContribute page which was intended to only be accessed by people renewing a specific type of membership.</p>
  
  <p>We have found though, that it appears on a Google search and indeed a completely random person has signed up for the membership.</p>
  
  <p>I have a Drupal Role for this membership type and also have a Group which we use as a mailing list; so would it be better to build it into a webform controlled by Access Control?</p>
  
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2016-03-06T19:24:03.830Z
Comments.Text: Webform might work but you would need to confirm if your Payment Processor is the type that works with webform-civi
Comments.UserDisplayName: petednz - fuzion
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2016-03-07T17:04:05.323Z
Comments.Text: I had that as a plan B as we already use that for an organisational relationship. I am surprised there is no option for a wholly renewal only option.
Comments.UserDisplayName: Darren Whittenham-Gray
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2016-06-07T23:57:08.957Z
Comments.Text: You might find this useful http://civicrm.stackexchange.com/a/4677/872
Comments.UserDisplayName: Andrei
Tags: <civicontribute><civimember>
Title: How do you restrict a CiviContribute page using roles
ThreadText: # How do you restrict a CiviContribute page using roles
  
  (Asked by: username_0 on 2016-03-04)
  
  I have a CiviContribute page which was intended to only be accessed by people renewing a specific type of membership.
  
  We have found though, that it appears on a Google search and indeed a completely random person has signed up for the membership.
  
  I have a Drupal Role for this membership type and also have a Group which we use as a mailing list; so would it be better to build it into a webform controlled by Access Control?
  
  **Tags:** civicontribute, civimember
  
  > **Comments:**
  > **username_1**: Webform might work but you would need to confirm if your Payment Processor is the type that works with webform-civi  
  > **username_0**: I had that as a plan B as we already use that for an organisational relationship. I am surprised there is no option for a wholly renewal only option.  
  > **username_2**: You might find this useful http://civicrm.stackexchange.com/a/4677/872  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_3 on 2016-03-09. Score: 0
  
  Idea for a possible workaround:
  
  * Create a group and role for the non-eligible users
  * Set up a Drupal block that only shows on this page and only for this role
  * put no visible content in the block, but create some JavaScript functionality to prevent non-eligible users to access the form
  
  
  ---
  
  