-
AuthorPosts
-
December 11, 2024 at 12:03 am #1473383
Hi
quick question: I have created a protected (wordpress password) page that should be only visible and visited for users with password.
Access to this page should be given by a QR code that means the link to the page incl. the password… so the user should be directed to the open page without adding the password manually.I can create a regular QR Code with the page link but this link does not contain the password … any ideas how to solve this?
as sample like: wwww.domain.de/protectedpage&passwordThx
- This topic was modified 1 week, 4 days ago by xeovision.
December 11, 2024 at 9:16 am #1473398Hey Sebastian,
Thank you for the inquiry.
Are you using a plugin for this? Please provide the name of the plugin and the site URL in the private field. For additional assistance, please contact the plugin developers.
Best regards,
IsmaelDecember 11, 2024 at 10:50 am #1473416Hi, no plugin.
I use the basic passwort page protection from wordpress (in page settings: publish, private, password).
The protection words with the added password.i need to know if there is a possibility to send someone a link to his page but in the links should the password be included so the use click on this link and the page opens directly without typing the password to the password field.
e.g. http://www.domain.de/protectedpage&password OR https: (Email address hidden if logged out) /protectedpage
Hope this is more clear
December 11, 2024 at 11:58 am #1473421The keyword here is: bypass
Bypass a WordPress Password Protected Page via urlFound a solution:
Add into function.phpadd_filter( 'post_password_required', function( $returned, $post ) { if ( !is_admin() ) { if (strpos($_SERVER['REQUEST_URI'], 'password') !== false){ if( $returned && ( $_GET['passwordd'] == $post->post_password ) ) $returned = false; } } else { $returned = true; } return $returned; }, 10, 2 );
Now, you can access the page with the url:
https://your-page.de/page?password=your-passwordSure,not the best protection but just for simple hidden pages
- This reply was modified 1 week, 4 days ago by xeovision.
December 11, 2024 at 6:19 pm #1473444Hi,
Glad to hear that you have this sorted out, if you have any further questions please create a new thread and we will gladly try to help you. Thank you for using Enfold.Best regards,
Mike -
AuthorPosts
- The topic ‘QR Code for password hidden page’ is closed to new replies.