<input type="hidden" id="_wpnonce" name="_wpnonce" value="9c395428d3" /><input type="hidden" name="_wp_http_referer" value="/blog/wp-json/wp/v2/posts/24784" /><input type="hidden" id="_wpnonce" name="_wpnonce" value="9c395428d3" /><input type="hidden" name="_wp_http_referer" value="/blog/wp-json/wp/v2/posts/24784" />{"id":24784,"date":"2018-08-05T21:39:33","date_gmt":"2018-08-05T11:39:33","guid":{"rendered":"https:\/\/www.businesslegions.com\/blog\/?p=24784"},"modified":"2018-08-06T11:19:45","modified_gmt":"2018-08-06T01:19:45","slug":"how-to-create-a-firefox-offline-mode-batch-file","status":"publish","type":"post","link":"https:\/\/www.businesslegions.com\/blog\/2018\/08\/05\/how-to-create-a-firefox-offline-mode-batch-file\/","title":{"rendered":"How To Create a Firefox  Offline Mode Batch File"},"content":{"rendered":"<!--CusAds0--><p>For those of you who don&#8217;t know, Firefox has an OFFLINE mode where you can use this to display cached content if the website is down. I&#8217;ve managed to create a little batch file that checks whether the website is down and then it loads the OFFLINE website (note you must have previously visited the website). Here&#8217;s the batch file:<\/p>\n<pre class=\"lang:default decode:true\">@ECHO OFF\r\nping -n 1 businesslegions.com | find \"TTL\" &gt;nul: 2&gt;nul:\r\nif not errorlevel 1 goto :firefox\r\nEcho LOADING WEBSITE IN OFFLINE MODE... PLEASE WAIT ...\r\n\"C:\\Program Files\\Mozilla Firefox\\firefox.exe\" -offline http:\/\/businesslegions.com\r\nexit\r\n:firefox\r\nEcho LOADING WEBSITE ONLINE MODE... PLEASE WAIT ...\r\n\"C:\\Program Files\\Mozilla Firefox\\firefox.exe\" http:\/\/businesslegions.com\r\nexit<\/pre>\n<p>You can download the above sample batch file here:<\/p><!--CusAds0-->\n<div class='w3eden'><!-- WPDM Link Template: Default Template -->\n\n<div class=\"link-template-default card mb-2\">\n    <div class=\"card-body\">\n        <div class=\"media\">\n            <div class=\"mr-3 img-48\"><img decoding=\"async\" class=\"wpdm_icon\" alt=\"Icon\"   src=\"https:\/\/cdn.businesslegions.com\/blog\/wp-content\/plugins\/download-manager\/assets\/file-type-icons\/box_download.png?strip=all&w=960\" \/><\/div>\n            <div class=\"media-body\">\n                <h3 class=\"package-title\"><a href='https:\/\/www.businesslegions.com\/blog\/download\/firefox-offline-batch-file\/'>Firefox Offline Batch File<\/a><\/h3>\n                <div class=\"text-muted text-small\"><i class=\"fas fa-copy\"><\/i> 1 file(s) <i class=\"fas fa-hdd ml-3\"><\/i> 0.39 KB<\/div>\n            <\/div>\n            <div class=\"ml-3\">\n                <a class='wpdm-download-link download-on-click btn btn-primary ' rel='nofollow' href='#' data-downloadurl=\"https:\/\/www.businesslegions.com\/blog\/download\/firefox-offline-batch-file\/?wpdmdl=24791&refresh=6a00d9a31cc2a1778440611\">Download<\/a>\n            <\/div>\n        <\/div>\n    <\/div>\n<\/div>\n\n<\/div>\n<p>The other option would be to manually select OFFLINE in the Web developer but I prefer to launch this batch file when the computer starts to load a particular website.<\/p>\n<p><img decoding=\"async\" class=\"alignnone size-full wp-image-24786\" src=\"https:\/\/cdn.businesslegions.com\/blog\/wp-content\/uploads\/2018\/08\/Firefox-Offline-Web-Developer-1.png?strip=all\" alt=\"\" width=\"283\" height=\"602\" srcset=\"https:\/\/cdn.businesslegions.com\/blog\/wp-content\/uploads\/2018\/08\/Firefox-Offline-Web-Developer-1.png?strip=all 283w, https:\/\/cdn.businesslegions.com\/blog\/wp-content\/uploads\/2018\/08\/Firefox-Offline-Web-Developer-1-141x300.png?strip=all 141w, https:\/\/cdn.businesslegions.com\/blog\/wp-content\/uploads\/2018\/08\/Firefox-Offline-Web-Developer-1-84x178.png?strip=all 84w, https:\/\/cdn.businesslegions.com\/blog\/wp-content\/uploads\/2018\/08\/Firefox-Offline-Web-Developer-1.png?strip=all&amp;w=226 226w\" sizes=\"(max-width: 283px) 100vw, 283px\" \/><\/p>\n<div class=\"lt-box\" style=\"border:1px solid #1d6a9e\"><div class=\"lt-box-title\" style=\"background-color:#2485C6;border-top:1px solid #a7cee8;text-shadow:1px 1px 0 #0b283b\">DO YOU LIKE WHAT YOU'VE READ?<\/div><div class=\"lt-box-content\">Join our subscription list and receive our content right in your mailbox. If you like to receive some Great deals our Freebies then subscribe now!\r\n\r\n<p><div class=\"tnp tnp-subscription \">\n<form method=\"post\" action=\"https:\/\/www.businesslegions.com\/blog\/wp-admin\/admin-ajax.php?action=tnp&amp;na=s\">\n<input type=\"hidden\" name=\"nlang\" value=\"\">\n<div class=\"tnp-field tnp-field-firstname\"><label for=\"tnp-1\">Name<\/label>\n<input class=\"tnp-name\" type=\"text\" name=\"nn\" id=\"tnp-1\" value=\"\" placeholder=\"\"><\/div>\n<div class=\"tnp-field tnp-field-email\"><label for=\"tnp-2\">Email<\/label>\n<input class=\"tnp-email\" type=\"email\" name=\"ne\" id=\"tnp-2\" value=\"\" placeholder=\"\" required><\/div>\n<div class=\"tnp-field tnp-field-button\" style=\"text-align: left\"><input class=\"tnp-submit\" type=\"submit\" value=\"Subscribe\" style=\"\">\n<\/div>\n<\/form>\n<\/div>\n<\/p>\r\n\r\n<\/div><\/div><!--CusAds0-->\n<div style=\"font-size: 0px; height: 0px; line-height: 0px; margin: 0; padding: 0; clear: both;\"><\/div>","protected":false},"excerpt":{"rendered":"<p>For those of you who don&#8217;t know, Firefox has an OFFLINE mode where you can use this to display cached content if the website is down. I&#8217;ve managed to create a little batch file that checks whether the website is down and then it loads the OFFLINE website (note you must have previously visited the [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1,830,3,1691,2046],"tags":[1972,1759,603,6299,94],"class_list":["post-24784","post","type-post","status-publish","format-standard","hentry","category-business","category-software-technology","category-technology","category-tip-and-tricks","category-website","tag-batch","tag-firefox","tag-mode","tag-offline","tag-website"],"_links":{"self":[{"href":"https:\/\/www.businesslegions.com\/blog\/wp-json\/wp\/v2\/posts\/24784","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.businesslegions.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.businesslegions.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.businesslegions.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.businesslegions.com\/blog\/wp-json\/wp\/v2\/comments?post=24784"}],"version-history":[{"count":4,"href":"https:\/\/www.businesslegions.com\/blog\/wp-json\/wp\/v2\/posts\/24784\/revisions"}],"predecessor-version":[{"id":24797,"href":"https:\/\/www.businesslegions.com\/blog\/wp-json\/wp\/v2\/posts\/24784\/revisions\/24797"}],"wp:attachment":[{"href":"https:\/\/www.businesslegions.com\/blog\/wp-json\/wp\/v2\/media?parent=24784"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.businesslegions.com\/blog\/wp-json\/wp\/v2\/categories?post=24784"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.businesslegions.com\/blog\/wp-json\/wp\/v2\/tags?post=24784"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}