{"id":281,"date":"2022-03-22T05:17:42","date_gmt":"2022-03-22T05:17:42","guid":{"rendered":"https:\/\/ap.pstek.nl\/pstek_wp\/?p=281"},"modified":"2022-06-21T02:59:28","modified_gmt":"2022-06-21T02:59:28","slug":"static-wordpress-faster-and-more-secure","status":"publish","type":"post","link":"https:\/\/ap.pstek.nl\/pstek_wp\/2022\/static-wordpress-faster-and-more-secure\/","title":{"rendered":"Static WordPress: Faster and More Secure?"},"content":{"rendered":"\n
WordPress<\/a> is one of the world’s most popular content management systems and there are many reasons for this: it’s free, there are tonnes of plugins and themes (many also free), you can manage it online with minimal programming experience, etc. etc. etc. Hence, WordPress rules.<\/p>\n\n\n\n But there are downsides to WordPress, which are basically this:<\/p>\n\n\n\n First,<\/strong> WordPress is very popular and so also popular to hack and spam<\/strong>, so you will regularly have attempts to hack your admin account, post spam comments, or send you spam via the contact form. Although usually unsuccessful, these kind of attacks can get you in trouble with your hosting provider.<\/p>\n\n\n\n Second,<\/strong> WordPress pages are created dynamically, so the page your user sees is extracted from the main database, and the content, widgets, etc. This is very cool, but requires processing power<\/strong>, and can thus slow down a website. Regular, static HTML requires almost no processing power and can therefore load much faster, even in high-traffic situations.<\/p>\n\n\n\n So the question is: should you go static<\/strong> with WordPress? And if so, how?<\/strong><\/p>\n\n\n\n If you do decide to do a static version of WordPress, you are essentially using your regular WordPress installation to generate the website, and occasionally you “print out” the static version which you host online.<\/p>\n\n\n\n So what do you give up<\/strong> when going static? Any dynamic content, such as comments and contact forms (which all work with the WordPress PHP), although you can embed a contact form hosted elsewhere into an HTML site, e.g. using Google Forms.<\/p>\n\n\n\n What you gain <\/strong> aside from the quick loading, is that public users can no longer access your back-end, as the yourblog.com\/wp-admin page is no longer visible (assuming you generate your WordPress page in another location than where you host your static page). That prevents hacking attempts.<\/p>\n\n\n\n Now from an operational aspect, you essentially need one plugin, aptly called Simply Static<\/a><\/strong>. It can export your WordPress installation to a directory on the same server. So you can have a static yourblog.com, while WordPress is running under a hidden (sub)domain like myhiddenwpinstallation.suckithackers.tk (get free domains from Freenom<\/strong><\/a>). As an extra protection you may wish to secure your WordPress installation further with Password Protected<\/a><\/strong> so those pages remain invisible.<\/p>\n\n\n\n Obviously no website is unhackable, but if server load is anyway a concern, then a static WordPress site may be a very good and simple solution.<\/p>\n","protected":false},"excerpt":{"rendered":" WordPress is one of the world’s most popular content management systems and there are many reasons for this: it’s free, there are tonnes of plugins and themes (many also free), you can manage it online with minimal programming experience, etc. etc. etc. Hence, WordPress rules. But there are downsides to WordPress, which are basically this: […]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[85],"tags":[78,79,87,77],"class_list":["post-281","post","type-post","status-publish","format-standard","hentry","category-tutorial","tag-security","tag-servers","tag-software","tag-wordpress"],"_links":{"self":[{"href":"https:\/\/ap.pstek.nl\/pstek_wp\/wp-json\/wp\/v2\/posts\/281","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/ap.pstek.nl\/pstek_wp\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/ap.pstek.nl\/pstek_wp\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/ap.pstek.nl\/pstek_wp\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/ap.pstek.nl\/pstek_wp\/wp-json\/wp\/v2\/comments?post=281"}],"version-history":[{"count":1,"href":"https:\/\/ap.pstek.nl\/pstek_wp\/wp-json\/wp\/v2\/posts\/281\/revisions"}],"predecessor-version":[{"id":282,"href":"https:\/\/ap.pstek.nl\/pstek_wp\/wp-json\/wp\/v2\/posts\/281\/revisions\/282"}],"wp:attachment":[{"href":"https:\/\/ap.pstek.nl\/pstek_wp\/wp-json\/wp\/v2\/media?parent=281"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/ap.pstek.nl\/pstek_wp\/wp-json\/wp\/v2\/categories?post=281"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/ap.pstek.nl\/pstek_wp\/wp-json\/wp\/v2\/tags?post=281"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}