Source code blocked?

Mutikasa

Power Member
Joined
May 23, 2011
Messages
589
Reaction score
216
There is one page I wanna rip, but I don't know how.
Let me explain.
When I go to the page via link like this
HTML:
http://domain.com/?ko=bla&la=koko
I get to the page and it automatically redirects to root
HTML:
http://domain.com
and now I can see the page and everything, but going to source code i see this
PHP:
<html>
<head>
<title>404 Not Found</title>
</head>
<body bgcolor="white">
<center><h1>404 Not Found</h1></center><hr>
<center>nginx</center></body></html>
<!-- a padding to disable MSIE and Chrome friendly error page -->
<!-- a padding to disable MSIE and Chrome friendly error page -->
<!-- a padding to disable MSIE and Chrome friendly error page -->
<!-- a padding to disable MSIE and Chrome friendly error page -->
<!-- a padding to disable MSIE and Chrome friendly error page -->
<!-- a padding to disable MSIE and Chrome friendly error page -->

When i refresh it's 404 error page.
How can you do this? It's first time I see this.
 
The source you're viewing is actually a 404 error page, and the padding that you're seeing is because MSIE (Microsoft Internet Explorer) and Chrome have a default 404 page if the 404 page supplied is under 512bytes.

If you want to send me a link (PM) to the page, I can see if I can figure it out for you.
 
well i just did it and looked at the source code ok, i wasn't redirected. i'm using chrome - placed cursor to side of page and view page source
 
View source isn't always very helpful. If be more inclined to inspect with firebug &/ the built in inspectors so you can see anything loaded asynchronously
 
In Chrome just put this in front of the URL you want to see the source code for - view-source:
 
I discovered he is running on django. he is doing redirect but the visual page stays the same
 
In Chrome just put this in front of the URL you want to see the source code for - view-source:
mamma mia, this worked! sort of...
now when I open saved html it actually shows html code, like literally.
 
Success, thank you all!
 
...
How can you do this? It's first time I see this.

you do it with history.pushState javascript api
he is doing this
Code:
history.pushState( {}, '', '/' )
that is not redirecting to root, just changes the url in the address bar to root
but when you refresh you call that url which is a 404 error page
 
you do it with history.pushState javascript api
he is doing this
Code:
history.pushState( {}, '', '/' )
that is not redirecting to root, just changes the url in the address bar to root
but when you refresh you call that url which is a 404 error page

oooooooo very clever!
At first I thought it causes httrack to fail, but now ive tried second time and httrack succeeded
 
Back
Top