Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

So, I've got a situation with a malicious page. First off, Chrome will not let me visit the page at all. With firefox, it blocks me, but will allow me to ignore the message.

I don't want to visit the page though. But I need to figure out what's wrong with it.

Is it possible to download the HTML source code from the page without viewing it?

EDIT: I'm kinda wondering if there's a site that can do it. I've seen indirect page renderers that view and render the page - wasn't sure if there's a site that can provide a page source downloader. If not though, that's fine - however I can get it will suit me.

share|improve this question
    
This is possible if you have FTP access or access to the files on the server. –  Ryan Apr 16 at 15:47
    
What operating system? –  slhck Apr 16 at 15:51
    
I'm using windows. –  AUTO Apr 16 at 15:52

1 Answer 1

up vote 3 down vote accepted

You can use wget or curl, if you're running a *NIX operating system then either of them will be installed already, if not then you can get Windows wget from

http://gnuwin32.sourceforge.net/packages/wget.htm

or curl from

http://curl.haxx.se/download.html

You will be 'visiting' the page, but you'll only get the source code, and it won't be rendered at all meaning it's safe to view.

In response to your edit, I suppose you could use this tool -

http://onlinecurl.com/

share|improve this answer
    
If you're using wget you'll do something like: wget -qO- google.com | cat With curl you can just do: curl google.com And the output is the source –  arpz Apr 16 at 15:54
    
Sweet! Seems a little buggy - I have to refresh the page before using it again, but it seems to work.. –  AUTO Apr 16 at 23:16
    
Hm. It seemed to work for all other sites except for that one :-? - It gave me "Content-Size: 0" but I visited the page in FF (with all safety guards up), and it's still a legit page. - Anyway I did get it. –  AUTO Apr 16 at 23:23

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.