• pase

    (@photoshopace)


    I am testing a custom page idea with WordPress Theme 2020 and a child theme on the localhost. Can I please get some guidance to create a WordPress page similar to the password-protected page? The idea is, instead of entering a password, the user enters an email to access the page. The goal is to email protect a WordPress page. How do I approach solving this problem? Can this be done? Does it make sense to do it?

    • This topic was modified 4 years, 6 months ago by pase.
Viewing 8 replies - 1 through 8 (of 8 total)
  • Moderator Steven Stern (sterndata)

    (@sterndata)

    Volunteer Forum Moderator

    >> Does it make sense to do it? <<

    What is your goal? Why are you collecting emails?

    I second, Steven’s question – Why are you collecting emails? ??

    If your goal is not to collect emails but rather restrict the page to specific email addresses only (instead of sharing single password) then please try using “Multiple Post Passwords” plugin.

    Now you get a choice – you can either set multiple passwords or directly set multiple emails. I hope this helps.

    Thread Starter pase

    (@photoshopace)

    Thanks for taking the time to respond. The goal is to collect the emails of the visitors that chose to enter the page. Once the user enters the email the page unlocks. I have not seen a plugin that offers this feature.

    Moderator Steven Stern (sterndata)

    (@sterndata)

    Volunteer Forum Moderator

    You could do that with a pretty standard form plugin. Most offer the ability to redirect to a “thank you” or results page on submission, so you’d put your content on that page. They go through the form to get there. To be a bit more secure, you could do a bit of coding to make sure that you were there as a result of a form submission via a bit of cookie manipulation.

    Thread Starter pase

    (@photoshopace)

    That is an interesting approach and it sounds that it will do what I have in mind. Thank you for your help!

    Thread Starter pase

    (@photoshopace)

    Yes, that worked very well. Thank you for your simple graceful solution.
    The part that I do not understand well is the cookie manipulation. If the email form is the only way to access the page via redirection how would a cookie make the transaction more secure and where would I place the cookie code?

    Moderator Steven Stern (sterndata)

    (@sterndata)

    Volunteer Forum Moderator

    If the form allows you to hook into a successful submission, use that to set a cookie. On the page to which the user gets redirected, check that the cookie exists. If it does, show page content. If not, return to the form.

    Thread Starter pase

    (@photoshopace)

    Thank you for the explanation! Will keep in mind and investigate the cookie application.

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘Custom Email Protected Page’ is closed to new replies.