-
Notifications
You must be signed in to change notification settings - Fork 694
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 rule(s) to check for redirects #438
Comments
I guess the opposite too? Isn't this included in the previous point? |
Also, it will be nice to tell the user how much of an impact this has had. We could check if the |
The reason why I've added HTTPS => HTTP is because that is problematic, and users should fix it. HTTP => HTTPS is "OK", and users should do that (in addition to other things such as HSTS).
Kinda. My thinking was that maybe some user won't care that it's just 1 redirect, but they should specifically care that the redirect is from HTTPS => HTTP, and we should make sure they know that. |
I think that should be another rule under security and have a general one to avoid redirects. |
Yes, we can go with that. (I wasn't sure if it should be a separate thing or not, reason why the title of the issue has: |
I'm starting with this rule (at least the basic redirects). These are my initial thoughts:
Main question: What do we do about the main page? Some websites have friendly urls. E.g.: https://edge.ms --> https://developer.Microsoft.com/en-us/microsoft-edge/ @sonarwhal/contributors what do you think? |
Redirects from HTTP to HTTPS - From a security/privacy perspective there should be a rule to check for this. You can try some of these for inspiration: IMHO a rule should be made to check for http -> https redirect where the rest of the url is exactly the same, and for the existing rule, max should be equal to 1 if the rest of the url is the same: |
Make we should make @webhintio/core Thoughts?
There are a few rules related to that (e.g.: @Ruffio Note: If you use the CLI you can configure the rule to not complain about that. |
I think that would be out of the scope of the rule, especially taking into account that:
|
It is just a suggestion and I can live with that one 'error' on the online version :-) |
@Ruffio and your suggestions are really appreciated! The project is community driven so if the majority of the core team decides it's worth adding it, we will do it regardless of what any individual thinks 😊 |
Possible checks:
The text was updated successfully, but these errors were encountered: