iEntry 10th Anniversary Forum Rules Search
WebProWorld
Register FAQ Calendar Mark Forums Read
Google Discussion Forum Google Discussion forum is for topics specifically related to Google. There is a subforum dedicated to AdSense/AdWords subjects.

Share Thread: & Tags

Share Thread:

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 06-28-2007, 06:39 PM
Milo's Avatar
WebProWorld Pro
 
Join Date: Nov 2004
Location: Cabarita Beach, Australia
Posts: 149
Milo RepRank 1
Default Dynamic code in source code

Hey all,
while doing my daily check on ranking etc I came across something I have not seen before. The top 2 ranking sites in my industry and location seem to have dynamic code appearing just above the <html> coding. This is what is looks like:

<!--Ref : http://www.google.com.au/search?hl=en&q=wedding+stationery&meta=-->

It changes with the search query. For example, the above was obtained with the search query "wedding stationery". When I search for "wedding invitations", I get

<!--http://www.google.com.au/search?hl=en&q=wedding+invitations&meta=-->

That was from the #2 site. The #1 ranking site has even more info in that line:

<!--http://www.google.com.au/search?hl=en&q=wedding+invitations&meta=___clicked _on:Thursday,_June_28,_2007_9:33:41_PM-->

Does anyone know how this is generated and would its addition help ranking?
Thanks in advance.
__________________
Miles Kitchen
Wedding Invitation Specialists
Reply With Quote
  #2 (permalink)  
Old 06-28-2007, 07:35 PM
WebProWorld Member
 
Join Date: Oct 2005
Posts: 40
niggles RepRank 1
Default Re: Dynamic code in source code

Creating the code is fairly easy using PHP or another scripting language. It just needs to check if the referrer is Google, and if so, print the referrer information on the fly.

As to why, it's hard to tell as it wouldn't get picked up by Google bots due to only being generated when someone has actually used search terms.

Cheers,
Niggles
__________________
-------------------------------------------------
World Music World - bringing the World's Folk Music Cultures Together
http://www.worldmusicworld.com/
-------------------------------------------------
Reply With Quote
  #3 (permalink)  
Old 06-28-2007, 07:52 PM
WebProWorld Member
 
Join Date: Dec 2006
Posts: 47
phx-keith RepRank 0
Default Re: Dynamic code in source code

Broken code is never good for the SE's. I've seen this before. I often look for code errors and find sites that have found themselves ranked for that error because the site is broken. In the short term I'm not sure it is all tha bad however if they error is not fixed It might result in a PR loss.
__________________
Custom PHP
Reply With Quote
  #4 (permalink)  
Old 06-28-2007, 08:03 PM
WebProWorld Member
 
Join Date: Oct 2005
Posts: 40
niggles RepRank 1
Default Re: Dynamic code in source code

It's not really an error though - it's just a comment tag with the referrer information. I can't see how it would help SEO efforts (or harm them) as the tag only exists when a human views it - unless it prints all referrer strings.

Maybe they were logging it to a database and were echo-ing it as a test and forgot to turn it off when done?

Actually, having now Googled the site in question, by directly echo-ing the query from Google opened it right up to XSS injection! It was pretty easy to break the page by closing off the comment tag in the Google query.

Cheers,
Niggles
__________________
-------------------------------------------------
World Music World - bringing the World's Folk Music Cultures Together
http://www.worldmusicworld.com/
-------------------------------------------------

Last edited by niggles; 06-28-2007 at 08:14 PM.
Reply With Quote
  #5 (permalink)  
Old 07-02-2007, 08:25 AM
Milo's Avatar
WebProWorld Pro
 
Join Date: Nov 2004
Location: Cabarita Beach, Australia
Posts: 149
Milo RepRank 1
Default Re: Dynamic code in source code

Thanks guys,
by the sounds of it, its not something that would do anything to improve rankings, right?
__________________
Miles Kitchen
Wedding Invitation Specialists
Reply With Quote
Reply

  WebProWorld > Search Engines > Google Discussion Forum

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Why Microsoft should reveal source code WPW_Feedbot IT Discussion Forum 0 03-01-2005 09:30 AM
Protect Source Code MySipsTea Graphics & Design Discussion Forum 3 10-04-2004 09:37 AM
Source code not available =;-( groenie Web Programming Discussion Forum 4 08-17-2004 12:29 PM
protecting html source code..help bob_bud Graphics & Design Discussion Forum 10 03-23-2004 10:53 PM
Help!!! Can't view source code mscrow Graphics & Design Discussion Forum 11 01-10-2004 05:17 AM


All times are GMT -4. The time now is 06:50 PM.



Search Engine Optimization by vBSEO 3.3.0