Need SID Killer code or workaround

Does anyone know of any code that can be used to get the search engines to ignore the SID that is created at the start of browsing.  The site is writing in HTML with a couple "shop" files written in Perl.  The shopping cart we are using is the Hassan cart, but we have certainly modified it.  

We have a site that has lots of content in html, but once google gets in there, a SID is attached to everything and it sure isn't helping our rankings.  We are trying to create a work around using a SID killer code, or if that doesn't work, routing the spider through a static sitemap link where the spider can browse the website (and we'll tell users not to, because it will dump their SID and their cart).  A

Anyone with any code or workaround suggestions.  If you need to see some code, let me know.

Who is Participating?
Personally I think that a webcrawler should not be able to spider your web basket, and should be limited to informational pages, and products pages only. Possibly you could the robots.txt to limit the search reach of the search engine spiders.

battlepigeonsAuthor Commented:
Problem is, all product pages must be accessed through the Cgi-bin for example.  When you enter the website, the first button you click has to go through the cgi-bin to create a session.  That way, you can put one thing in the cart and then browse around to anyother page on the website (other products, about us, home) and the session isn't dropped.

So you start off at:

then you push any button on the website and it has the token that is through a perl file in the cgi-bin:


Out comes:

I've robots.txt'd it so that it can't enter the cgi-bin, but that still won't get my content spidered.  It will just stop the cacheing the SIDs.  So unless I want to create a sitemap for ONLY the spider, that will link to pages and content that will be pure html.....I need to find a way to deal with the spider/SID.
Would it be possible to tell your CGI script that is initializing the sessions to not do so if the browser agent is googlebot etc?  I'm not a cgi/perl person at all, but this is how a similar thing can be done using PHP, which is what I use. Just a thought.


battlepigeonsAuthor Commented:
Good idea...anyone know how to do that in perl?
I'm no expert in Perl, but after searching around a bit, (as is often the case with Perl), someone has done the work already :)

You might think about using HTTP::BrowserDetect
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.