No Plugin is Required. Here is a Ready to Use Method to Share WordPress Post Preview Via Cloud Storage Like OpenStack Swift of DropBox Cloud. There are hundreds are WordPress plugins to share WordPress post preview which actually involves some tweaks via PHP so that on the domain, publicly the Post can be shown taking the data from MySQL Database.
What Are the Disadvantages to Share WordPress Post Preview Via Plugin?
First, none of us need to show or share WordPress post preview on regular basis.
Second, there is security risk as all the stuffs are on same domain.
Third, Google or Search Engine Bots can crawl.
Forth, apart from the general security risks, a DDoS can be brought with the non-cached page.
Share WordPress Post Preview Via Cloud Storage
This is so easy method that you can not imagine to be existent! Imagine that this post is being written by you. Now, obviously, you have use the [View Post] button link of WordPress text editor. When we are clicking that [View Post] button, the webpage opens with a URL which looks like this :
It does not matter what the URL is! Go to the browser menu and find the option to view the HTML source code. Select all the text and copy it. Paste it on any text editor like GNU Nano or Vi or TextWrangler or Emacs or Gedit for Windows, Microsoft Notepad can also can do the same work. Save it with some name like :
from the text Editor. Now, you need to upload this HTML file somewhere like on DropBox Cloud or to Akamai CDN via OpenStack Swift Object Storage. It does not require huge knowledge to understand how to share the URL of that HTML page. What you want more? You can add password to restrict the access to all but who has the password. You can remove the WordPress edit bar by deleting the div from HTML :Advertisement
Now an experimental command line method for the above work. We have not tested but from SSH, possibly you can use cURL from localhost :
curl https://thecustomizewindows.com/?p=44208&preview=true > my-great-post.html
swift upload my-great-post.html container
To use swift upload command, you need to configure your server to use the Python Swift Client tool.
OpenStack Swift supports auto purge. So, if you set it, it will get auto deleted after the specified time. HTML page, frankly it is fully on your hand to control. For example; you can edit a designing part and share with your graphics designer. Delete those share WordPress post preview plugins, they can not give so many features unlike our method except adding the chance of DDoS and SQL injections…