Forum Moderators: Robert Charlton & goodroi
The js code looks like it returns a string of a start and end year. Maybe it tries to create a copyright date range of the document to display it somewhere?
You mean how it ended up in the Google's index?
If you want to avoid such URLs appearing in search results, I would recommend you look at the (sometimes complex!) subjects of canonicalisation and robots exclusion.
[edited by: Robert_Charlton at 5:07 am (utc) on Aug 28, 2012]
[edit reason] fixed (smiley) formatting [/edit]
Could the presence of these URLs in Google's index spread the page rank of the site and impact rankings?
In the robots.txt file, you would want to disallow the /scripts directory, i do not see any reason to let that directory get indexed.
I don't have access to my root host file.
What could be making them to appear in the SERP now?
do you mean you don't have access to the server configuration file or the document root directory or ...?
what type of server is it?
It is a linux platform.
I don't have access to the document root directory (I believe that is the same as the server configuration file).
it had better not be the same!
if you don't have access to the document root directory how did you upload those javascript and css files?
[edited by: incrediBILL at 4:24 am (utc) on Aug 28, 2012]
[edit reason] fixed formatting [/edit]
Go to the very last page of the site: listings and click on the "show omitted results" link. Google sometimes hides the duplicates, sometimes not.
Why are css and js files in the serach results anyway?
[edited by: incrediBILL at 4:25 am (utc) on Aug 28, 2012]
[edit reason] fixed formatting [/edit]
<!--
function getCopyrightDate(iStartYear, iRangeSize, separatorString)
{
var date = new Date();
// if no start year is passed in, then use the current year
if (iStartYear == null || iStartYear == 0 || iStartYear == "")
{
iStartYear = date.getFullYear();
} as long as those urls aren't referred to by anything on your domain i would focus on providing the proper redirect or error response.
But that invisible link such as <a href = "http://www.example.com/trackername/trackername.php">* is visible to any passing robot, because they're reading the raw html, not the surface of the page.