Skip to content

Instantly share code, notes, and snippets.

@ducban
Created March 28, 2018 04:41
Show Gist options
  • Save ducban/86ca57db6234e9cdf20837950e7274ef to your computer and use it in GitHub Desktop.
Save ducban/86ca57db6234e9cdf20837950e7274ef to your computer and use it in GitHub Desktop.
SSL forcing using JS
/* Paste this shit after the open head tag <head> */
<script type="text/javascript">
if (window.location.protocol != "https:")
window.location.protocol = "https";
</script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment