Can I give Google access to my protected documents by "whitelisting" their IP address(es) in my htaccess file? This is so Google Scholar can access it, and Google Rich Text via Structured data.
Hello, Yes, you can do it. Just edit .htaccess file and add the following code right after RewriteEngine On Code: RewriteCond %{REMOTE_ADDR} ^127\.0\.0\.1$ [OR] RewriteCond %{REMOTE_ADDR} ^127\.0\.0\.2$ [OR] RewriteCond %{REMOTE_ADDR} ^127\.0\.0\.3$ RewriteRule .* - [L] You need to update my example code and use google IPs. FYI: I do not recommend to do it. 1. Google and other search engines can access your pages from different IPs and in case they get different content for such request then they can make decision that you want to fool them and then can block your pages in search engine. 2. Google can save it in archive and then any user can see your protected content in this archive.