Created
March 28, 2018 04:41
-
-
Save ducban/86ca57db6234e9cdf20837950e7274ef to your computer and use it in GitHub Desktop.
SSL forcing using JS
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* 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