Let's say there's a URL www.badjs.com
which is untrusted and may contain bad scripts.
Intuitively, a view-source navigation to that URL does not execute any scripts so it should be safe. It would at least allow me to inspect the source safely.
But intuition is a terrible way to draw conclusions on security issues, so my question is:
Is view-source a safe way to look at a website from a js script injection perspective?
1 - 0.68^2
or 54% and rising every month, so I don't see a need to do something unusual for desktops. – tohster 2 days agom.wikipedia.org
has a very bad UI on desktop, so a mobile link is bad for 68% of traffic, while a desktop link is bad for ~0% of traffic. I've edited it to use a desktop link; you can roll it back if you disagree, but please don't (this is a bit of a pet peeve of mine as well). – cpast yesterdaycurl http://url.ext
from the terminal, but some websites might not serve proper markup to non-browser user-agents, so you will have to spoof your UA withcurl -A "user-agent-here" http://url
. – Awal Garg yesterday