Unstoppable Domains โ€” Expired Auctions

How to view the source code?

Namecheap AuctionsNamecheap Auctions
SpaceshipSpaceship
SpaceshipSpaceship
Watch
Impact
0
I'm not an experienced web designer so bear with me.

I came across a web page that made me very curious how the author wrote such page.

Is it possible to view the source code of the following page?

http://www.optavia.com/shoes1/van_shoes.html

When you click on it, it takes to another site and you can never view the source code of the original page. I'm assuming that the author uses affiliate tracking code before it gets to the new site.

Perhaps, this is a way to hide the source code?

I want to learn how he wrote the code for this page.
If there is any way to view it, I will greatly appreciate your help.
 
0
•••
The views expressed on this page by users and staff are their own, not those of NamePros.
Unstoppable Domains โ€” AI StorefrontUnstoppable Domains โ€” AI Storefront
what browser do you use?

You might try turning off Javascript and Meta Refreshes - both can be done in IE I know..

Welcome to NP triver!
 
0
•••
hi triver

right click and view source..I have no problem doing that on my slim browser...
seems to be redirected to another site.
 
0
•••
Thanks for posting a reply so quick.
Thanks for welcoming me.

I have IE6. How do you turn of Javascript or Meta refreshes?

On IE6, I went to Tools->Internet Options->Advanced, but I didn't find anything related to them.

Or do I need to look else where to turn them off?

Any reply will be greatly appreciated.

Originally posted by redhippo
right click and view source..I have no problem doing that on my slim browser...
seems to be redirected to another site.

Thanks for your reponse.
I'm interested in viewing the source code of the original page.
When I go to the original page, it takes to another page which I can view its source code.
But the redirecting is so quick that I don't have sufficient time to open the source code of the original web page.
 
Last edited:
0
•••
bare in mind, you cannot view sourse code of server sidelanguages such as php, asp etc.
 
0
•••
Originally posted by rabid_nerd
what browser do you use?

You might try turning off Javascript and Meta Refreshes - both can be done in IE I know..

Welcome to NP triver!


Yes, I turned off Javascript and Meta Refreshes.
I did this by going to Tools->Internet Options->Security, then click on Custom Level for "Internet".
I disabled all three scripting options and disabled Meta Refresh.

The site still redirects to the another site and I still cannot view the source code of the original site.

Any help from anyone would be appreciated.
 
0
•••
0
•••
Originally posted by -RJ-
I think the question is, can you view the source on a page like this that has an immediate redirect. Usually doorway pages for search engines.

http://www.optavia.com/shoes1/van_shoes.html

Try this one --

http://javascript.internet.com/page-details/source-viewer.html

Though I'm not sure that is providing accurate results. I used to have a Windows program that would check a URL and ignore any redirects. You might search around some of the software sites for something like that.


Thanks for your reply.
I tried the site but still have not been able to extract the source code.
At least you understand what I'm trying to do.

I will really appreciate any further help from anyone who can tell me how I can successfully extract out the source code from the original web page (You call it "the door way page for the search engine"? Very interesting. I would like to learn more.).

Thanks much.
 
0
•••
I could only get

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=windows-1252"></HEAD>
<BODY></BODY></HTML>

It is possible that there is no code for the page and they are using a dns redirect on the actual host rather than using meta or javascript redirects.

To view source code on pages that use normal redirects just hit the stop button before it redirects normally works for me..
 
0
•••
Here's an IE trick for you --

Even when View Source has been disabled, you can still view the source by adding "" before the URL. It will open the source in Notepad and you are good to go.

Go ahead and try it for this page:
view-source:http://www.namepros.com/showthread.php?s=&threadid=33584

See? Please send a NP$ donation my way if you found this secret tip useful!
 
0
•••
This doesn't work for the site with the re-direct but here is a way of linking to view source if you ever need it.

<a href="view-source:http://www.optavia.com/shoes1/van_shoes.html">text</a>

Like I said, it doesn't work for this site, since this link is redirected as well, but it's a nice geeky bit of code to show off your source code or to get hold of the source when IE (as mine does from time to time) stops letting you view source and you don't have another browser handy.

Spirited :D

P.s. Anthony, I couldn't get that tip to work. What browser do you use - or am I doing something wrong?
 
0
•••
It looks like they are using PHP to redirect to that page. You can see from the headers:

HTTP/1.1 302 Found
Date: Tue, 15 Jun 2004 21:43:15 GMT
Server: Apache/1.3.26 (Unix) PHP/4.2.1 FrontPage/5.0.2.2510
X-Powered-By: PHP/4.2.1
Location: http://www.qksrv.net/click-1406964-166253?url=http://www.zappos.com/n/br/b/171.html&sid=opta1570661
Connection: close
Content-Type: text/html

That's all the source code there is for this page http://www.optavia.com/shoes1/van_shoes.html, but it's really just the headers which is the only thing that page returns because it's using headers to redirect.

You can see that all they are doing is simply creating links that are being redirected to affiliate links which is why and how you end up on the zappos page.

The code in the actual file is probably nothing more than:

<?php
header("Location: http://www.qksrv.net/click-1406964-166253?url=http://www.zappos.com/n/br/b/171.html&sid=opta1570661");
?>
 
0
•••
Originally posted by deadserious
It looks like they are using PHP to redirect to that page. You can see from the headers:

HTTP/1.1 302 Found
Date: Tue, 15 Jun 2004 21:43:15 GMT
Server: Apache/1.3.26 (Unix) PHP/4.2.1 FrontPage/5.0.2.2510
X-Powered-By: PHP/4.2.1
Location: http://www.qksrv.net/click-1406964-166253?url=http://www.zappos.com/n/br/b/171.html&sid=opta1570661
Connection: close
Content-Type: text/html

That's all the source code there is for this page http://www.optavia.com/shoes1/van_shoes.html, but it's really just the headers which is the only thing that page returns because it's using headers to redirect.

You can see that all they are doing is simply creating links that are being redirected to affiliate links which is why and how you end up on the zappos page.

The code in the actual file is probably nothing more than:

<?php
header("Location: http://www.qksrv.net/click-1406964-166253?url=http://www.zappos.com/n/br/b/171.html&sid=opta1570661");
?>



Thanks much for the info.
Can anyone tell me what "&sid=opta1570661" is for?
Why does he have such code at the end?
Can someone tell me what it's for?

Thanks much.
 
0
•••
Originally posted by triver
Thanks much for the info.
Can anyone tell me what "&sid=opta1570661" is for?
Why does he have such code at the end?
Can someone tell me what it's for?

Thanks much.

It's most likely just their affiliate id code so the sites they are sending you can keep track of where the visitor is coming from and give credit to the proper affiliate.
 
0
•••
Originally posted by Spirited
P.s. Anthony, I couldn't get that tip to work. What browser do you use - or am I doing something wrong?

I know it works in IE. Make sure you actually put "view-source:" before the URL in the address bar.
 
0
•••
Originally posted by deadserious
It's most likely just their affiliate id code so the sites they are sending you can keep track of where the visitor is coming from and give credit to the proper affiliate.

From the full code,

http://www.qksrv.net/click-1406964-166253?url=http://www.zappos.com/n/br/b/171.html&sid=opta1570661

As far as I know, the affiliate tracking code is

http://www.qksrv.net/click-1406964-166253

I know this because I'm also an affiliate of Commision Junction.

The destination page is

http://www.zappos.com/n/br/b/171.html

So to my understanding, all that is needed is

http://www.qksrv.net/click-1406964-166253?url=http://www.zappos.com/n/br/b/171.html

So any one has any clue as to what the extra string

"&sid=opta1570661"

is for?
 
0
•••
if your having trouble view source code click file - save as and then open it with notepad or a similar text editor :)
 
0
•••
or view>>scource
 
0
•••
S'alright Anthony, I read your instructions wrong, you basically do the same as I was suggesting for the <A tag>. However it still doesn't work with IE - but then neither does my view> source command either... time to clear out all my temp files and programes again I think.

It works in Moz for me though, ta.
 
0
•••
Originally posted by triver
From the full code,

http://www.qksrv.net/click-1406964-166253?url=http://www.zappos.com/n/br/b/171.html&sid=opta1570661

As far as I know, the affiliate tracking code is

http://www.qksrv.net/click-1406964-166253

I know this because I'm also an affiliate of Commision Junction.

The destination page is

http://www.zappos.com/n/br/b/171.html

So to my understanding, all that is needed is

http://www.qksrv.net/click-1406964-166253?url=http://www.zappos.com/n/br/b/171.html

So any one has any clue as to what the extra string

"&sid=opta1570661"

is for?

If you look at your transaction reports you'll see a column named SID. You can add SID to your affiliate links in order to track which links the transaction came from. So for example if you added &SID=ABC to the end of one of your affiliate links you'll see ABC appear in the SID column if the transaction originated from that link.
 
0
•••
CatchedCatched
Escrow.com
Spaceship
Domain Recover
CryptoExchange.com
Catchy
DomDB
NameFit
  • The sidebar remains visible by scrolling at a speed relative to the pageโ€™s height.
Back