-
-
Notifications
You must be signed in to change notification settings - Fork 200
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add an option to test links for an HTTPS alternative #314
Comments
Interesting. So you're proposing, say, if you have a link pointing to http://www.wikipedia.com, it should actually point to https://www.wikipedia.com? I guess the question is if it's possible to detect whether a URL has a secure alternative or not. |
Yes, exactly. It's actually not as straightforward as sending an HTTPS request and expecting a And others have a redirect but keep the HTTPS (like https://facebook.com, which redirects to https://www.facebook.com) This means that if you want to know what's on the end of the HTTPS version of the link, you have to sit through the redirects until you land on either:
I think it should be feasible using only the following information:
Here's how I'm thinking it should go about it, in pseudocode:
Something like that. I haven't written it in, but at any point, the certificate is invalid or the request isn't met with a response, it should return I think that should work. |
Note to self, there's a totally separate |
This issue is proposing to add recommendations when checking HTTP links.
Such recommendations are beyond the scope of a "checker" and beyond the scope of this project. Every issue here could also implement recommendations and these could add significantly more complexity to the project. |
I recommend closing this issue based on proposed project scope at #422. This is still a great idea and if people are interested it could be implemented as a third-party pluggin and mentioned from the wiki here. |
Related issue: #427 P.S. I have working process that accomplishes what you are looking for in this wiki: https://github.com/fulldecent/html-website-template/wiki/Upgrade-http-links-to-https |
Fantastic! It does make more sense as a third-party plugin now that there is an interface for those, so I'll close this issue. Thank you for your great work! |
Lately, there's been a big push for wider HTTPS support. Following that trend, I think it could be a good idea to have an additional option that tests if HTTP links have an HTTPS alternative.
This option wouldn't be as harsh as
enforce_https
, which fails all insecure links. Obviously, from a security standpoint, if you're on HTTPS, then all your links should be HTTPS too. But that may be a bit of a high bar for many people, as it requires major changes to their sites. Instead, a more flexible option would be to only fail insecure links that actually have a secure alternative. This option would heighten the security of many sites considerably, especially considering the relatively low commitment involved.I'm filing this as an issue, mainly because I wanted to gauge the interest in a such feature — do you think that this is within the scope of this project?
The text was updated successfully, but these errors were encountered: