{"id":2776,"date":"2021-03-01T16:42:00","date_gmt":"2021-03-01T21:42:00","guid":{"rendered":"https:\/\/www.bates.edu\/wordpress\/?page_id=2776"},"modified":"2025-11-19T14:59:53","modified_gmt":"2025-11-19T19:59:53","slug":"protected-content-by-bates-login","status":"publish","type":"page","link":"https:\/\/www.bates.edu\/wordpress\/block-editor\/bates-specific-features\/protected-content-by-bates-login\/","title":{"rendered":"Protected Content by Bates Login"},"content":{"rendered":"\n<section class=\"wp-block-bates-shortcodes-highlight highlight-box highlight-box-yellow\">\n<p>This block becomes available with the activation of the <em>Bates External Authentication<\/em> plugin.<\/p>\n<\/section>\n\n\n\n<p>This block is appropriate for securing some, but not all, forms of information. In some cases, another solution with more granular access controls like Google Sites or Google Drive may be more appropriate. WordPress is a publishing platform and is therefore publicly oriented though it does offer some content protection capabilities. Sensitive text content like SSNs should not be included in WordPress even with this Block.<\/p>\n\n\n\n<p><strong>In a new block, type \/protect and select \u201cProtect Content by Bates login\u201d<\/strong><\/p>\n\n\n\n<div style=\"height:20px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"850\" height=\"214\" src=\"https:\/\/www.bates.edu\/wordpress\/files\/2021\/03\/Protect-Content.gif\" alt=\"\" class=\"wp-image-2778\"\/><figcaption>Shortcut to access the &#8220;Protect Content by Bates login&#8221; block<\/figcaption><\/figure>\n\n\n\n<p>Anyone with a Bates login has access to this content, including but not limited to: students, faculty, staff, and anyone else with a Bates login such as some retirees, and some contractors.<\/p>\n\n\n\n<p>Content in protected blocks <strong>cannot<\/strong> be limited to specific subgroups of users in the Bates community, such as students or faculty only.<\/p>\n\n\n\n<p>Below is an example of what a protected block looks like to a user who is not logged in with their Bates credentials:<\/p>\n\n\n\n<figure class=\"wp-block-image size-medium\"><img loading=\"lazy\" decoding=\"async\" width=\"400\" height=\"283\" src=\"https:\/\/www.bates.edu\/wordpress\/files\/2021\/03\/Screen-Shot-2021-02-20-at-10.13.39-PM-400x283.png\" alt=\"\" class=\"wp-image-2779\" srcset=\"https:\/\/www.bates.edu\/wordpress\/files\/2021\/03\/Screen-Shot-2021-02-20-at-10.13.39-PM-400x283.png 400w, https:\/\/www.bates.edu\/wordpress\/files\/2021\/03\/Screen-Shot-2021-02-20-at-10.13.39-PM-900x638.png 900w, https:\/\/www.bates.edu\/wordpress\/files\/2021\/03\/Screen-Shot-2021-02-20-at-10.13.39-PM-768x544.png 768w, https:\/\/www.bates.edu\/wordpress\/files\/2021\/03\/Screen-Shot-2021-02-20-at-10.13.39-PM.png 1160w\" sizes=\"(max-width: 400px) 100vw, 400px\" \/><figcaption>Login prompt for any user not yet logged in<\/figcaption><\/figure>\n\n\n\n<p>Protected blocks <strong>cannot<\/strong> protect any non-text content, such as images (e.g. PNG, JPEG) or videos. <strong>Only text and text-based blocks such as tables and foldaways can be protected in a protected block.<\/strong> If you want to protect multimedia content, consider another solution with more granular access controls like Google Drive or Google Sites.&nbsp;<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Protect Content Options<\/h2>\n\n\n\n<p>In the right sidebar of the editor a menu of different options for the block will appear when the &#8220;protect content&#8221; block is selected.<\/p>\n\n\n\n<p><strong>Auto-reload page&nbsp;<\/strong><\/p>\n\n\n\n<p>This is enabled by default. Logs out user and reloads the page after 10 minutes of inactivity.<\/p>\n\n\n\n<p><strong>Notify when about to expire<\/strong><\/p>\n\n\n\n<p>About a minute before automatically logging out the user, display a popup giving them the opportunity to extend their session. This can be useful when there is a lot of content inside the protected block and may be difficult to finish before getting logged out.&nbsp;<\/p>\n\n\n\n<p><strong>Need to login message<\/strong><\/p>\n\n\n\n<p>Customize the message telling the viewer they need to login to view this content. Defaults to &#8220;Please login with your Bates credentials to view this content&#8221;<\/p>\n\n\n\n<p><strong>You are logged in message<\/strong><\/p>\n\n\n\n<p>Customize the message which displays at the top of the protected section while the user is logged in. Defaults to &#8220;You can see this content because you are logged in with your Bates credentials&#8221;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>This block is appropriate for securing some, but not all, forms of&hellip;<\/p>\n","protected":false},"author":1255,"featured_media":0,"parent":4254,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_hide_ai_chatbot":false,"_ai_chatbot_style":"","associated_faculty":[],"_Page_Specific_Css":"","_bates_restrict_mod":false,"_batesModPostContentOverride_prepend":false,"_batesModPostContentOverride_append":false,"_batesModPostContentOverride_append_before_footer":false,"_dimp_site_id":"","_dimp_override_contact":false,"_table_of_contents_display":false,"_table_of_contents_location":"","_table_of_contents_disableSticky":false,"_is_featured":false,"footnotes":"","_bates_seo_meta_description":"","_bates_seo_block_robots":false,"_bates_seo_sharing_image_id":0,"_bates_seo_sharing_image_twitter_id":0,"_bates_seo_share_title":"","_bates_seo_canonical_overwrite":"","_bates_seo_twitter_template":""},"class_list":["post-2776","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/www.bates.edu\/wordpress\/wp-json\/wp\/v2\/pages\/2776","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.bates.edu\/wordpress\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/www.bates.edu\/wordpress\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/www.bates.edu\/wordpress\/wp-json\/wp\/v2\/users\/1255"}],"replies":[{"embeddable":true,"href":"https:\/\/www.bates.edu\/wordpress\/wp-json\/wp\/v2\/comments?post=2776"}],"version-history":[{"count":2,"href":"https:\/\/www.bates.edu\/wordpress\/wp-json\/wp\/v2\/pages\/2776\/revisions"}],"predecessor-version":[{"id":2810,"href":"https:\/\/www.bates.edu\/wordpress\/wp-json\/wp\/v2\/pages\/2776\/revisions\/2810"}],"up":[{"embeddable":true,"href":"https:\/\/www.bates.edu\/wordpress\/wp-json\/wp\/v2\/pages\/4254"}],"wp:attachment":[{"href":"https:\/\/www.bates.edu\/wordpress\/wp-json\/wp\/v2\/media?parent=2776"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}