I’m looking into kill switch alternatives. The people I’m working with don’t like that the css kill switch makes the screen black and have asked for a kill switch that remotely redirects to a subfolder once activated. So when the kill switch is activate on our server the kill switch will redirect from http://www.domain.com to http://www.domain.com/oldsite/ which will hold their old site files. Is there a solution like this?
I’m looking into kill switch alternatives. The people I’m working with don’t like that
Share
You can use the same trick they’re using, but with JavaScript.
First, in the head of their document, add this link to a JavaScript file on your server:
Then, in your server’s root, create a folder with the name
kill-switches. In there, create a file namedoffending-site.js, and put this in that file:Then, just comment/uncomment that line as need.
Note: Keep in mind that this is as unfoolproof as the CSS Kill Switch. Your client could just remove that
scriptline and be done with it.P.S. Be sure to serve non-caching headers, or it won’t work.