100asa Posted December 13, 2004 Posted December 13, 2004 I see, into who's online, that Googlebot make the same query os mu guest. Is it normal? Skype: centoasa Skype: remigioruberto
♥Vger Posted December 13, 2004 Posted December 13, 2004 You will want google bot to visit your site, so that you get listed with them - but you don't want google bot creating session ids. So, in your osCommerce control panel, under Configuration --> Sessions make sure that Prevent Spider Sessions is set to 'true'. This won't stop google bot visiting your site, it'll just stop it from creating session ids. Vger
100asa Posted December 13, 2004 Author Posted December 13, 2004 Unfortunately I've made so many changes and contribution that my osc is confused! Into another post I say that force use cookie is off, prevent spider session is on, but I've this problem: if You set your browser to disable cookies, entering into my website (www.100asa.it) the first page can You see is logoff, and this page looping, so You don't see nothing :( And many bots create a session id, also my prevent spider session is true. Please. help me to configure osc to prevent spider session and able osc to see my page without cookie, as my admin. what's the best setting of session? Thank you in advance. Skype: centoasa Skype: remigioruberto
♥Vger Posted December 13, 2004 Posted December 13, 2004 Your website is working fine on my computer. I can navigate through all the pages fine, no session ids are generated. I suggest you empty the 'History' files from your own computer and also delete all Temporary Internet Files and all Offline Content. I think you are seeing versions of your website which have been cached on your own computer. You should also set Internet Explorer to always look for a new file. The only point I would make is that the English language translation of your Conditions of Use make no sense whatsoever in English. Vger
100asa Posted December 13, 2004 Author Posted December 13, 2004 Thank you for your suggest. It's right: the english version of condition is not still translated. You don't see the session id because your browser cookies is abled; but if you stop all cookies my osc see you logoff page looping. This is the problem (only 2 days ago my osc working fine, then I've made some changes by contribution, and logoff lopp when stop cookie into browser) Skype: centoasa Skype: remigioruberto
cmbyrne Posted December 13, 2004 Posted December 13, 2004 This is probably a very dumb question but, how do you know when a googlebot (or any other for that matter) is visiting your site? Christina
Arcadiauk Posted December 13, 2004 Posted December 13, 2004 CMBYRNE I have this PHP at the top of my INDEX.PHP file and I get an email whenever GOOGLEBOT enters my site. <?php /* $Id: index.php,v 1.1 2003/06/11 17:37:59 hpdl Exp $ osCommerce, Open Source E-Commerce Solutions http://www.oscommerce.com Copyright © 2003 osCommerce Released under the GNU General Public License */ if(eregi("googlebot",$HTTP_USER_AGENT)) { if ($QUERY_STRING != "") {$url = "http://".$SERVER_NAME.$PHP_SELF.'?'.$QUERY_STRING;} else {$url = "http://".$SERVER_NAME.$PHP_SELF;} $today = date("F j, Y, g:i a"); mail("[email protected]", "Googlebot detected on http://$SERVER_NAME", "$today - Google crawled $url"); } The red text is the relevant bit. Just make sure you alter the "[email protected]" bit before adding it. Backup your index.php file before changing too. Derek
100asa Posted December 13, 2004 Author Posted December 13, 2004 By the last version of who's online. I've just installed into protected folder the original version of osc: stopping all cookies I browse into website, and I can see always the sessionID. Skype: centoasa Skype: remigioruberto
boxtel Posted December 13, 2004 Posted December 13, 2004 CMBYRNE I have this PHP at the top of my INDEX.PHP file and I get an email whenever GOOGLEBOT enters my site. <?php /* $Id: index.php,v 1.1 2003/06/11 17:37:59 hpdl Exp $ osCommerce, Open Source E-Commerce Solutions http://www.oscommerce.com Copyright ? 2003 osCommerce Released under the GNU General Public License */ if(eregi("googlebot",$HTTP_USER_AGENT)) { if ($QUERY_STRING != "") {$url = "http://".$SERVER_NAME.$PHP_SELF.'?'.$QUERY_STRING;} else {$url = "http://".$SERVER_NAME.$PHP_SELF;} $today = date("F j, Y, g:i a"); mail("[email protected]", "Googlebot detected on http://$SERVER_NAME", "$today - Google crawled $url"); } The red text is the relevant bit. Just make sure you alter the "[email protected]" bit before adding it. Backup your index.php file before changing too. Derek <{POST_SNAPBACK}> that should fill your inbox pretty fast. Treasurer MFC
100asa Posted December 13, 2004 Author Posted December 13, 2004 It's right, Amanda! Skype: centoasa Skype: remigioruberto
♥Vger Posted December 13, 2004 Posted December 13, 2004 I have the feeling that there is something wrong with your includes/configure.php file. Please post it here (minus the database user name and password). The settings I would recommend (until we get this problem sorted out) for Configuration --> Sessions are: Force Cookie Use = false Check SSL session id = false Check User Agent = false Check IP Address = false Prevent SpiderSessions = true Recreate session = false Vger
Arcadiauk Posted December 13, 2004 Posted December 13, 2004 We average between 3 & 5 emails a day from googlebot, so it isn't that bad. This is only detecting googlebot and nothing else, i'm sure you can alter the php to email when other search engines come in too. Derek
100asa Posted December 13, 2004 Author Posted December 13, 2004 <?php /* osCommerce, Open Source E-Commerce Solutions http://www.oscommerce.com Copyright (c) 2003 osCommerce Released under the GNU General Public License */ // Define the webserver and path parameters // * DIR_FS_* = Filesystem directories (local/physical) // * DIR_WS_* = Webserver directories (virtual/URL) define('HTTP_SERVER', 'http://www.100asa.it'); // eg, http://localhost - should not be empty for productive servers define('HTTPS_SERVER', ''); // eg, https://localhost - should not be empty for productive servers define('ENABLE_SSL', false); // secure webserver for checkout procedure? define('HTTP_COOKIE_DOMAIN', 'www.100asa.it'); define('HTTPS_COOKIE_DOMAIN', ''); define('HTTP_COOKIE_PATH', '/'); define('HTTPS_COOKIE_PATH', ''); define('DIR_WS_HTTP_CATALOG', '/'); define('DIR_WS_HTTPS_CATALOG', ''); define('DIR_WS_IMAGES', 'images/'); define('DIR_WS_ICONS', DIR_WS_IMAGES . 'icons/'); define('DIR_WS_INCLUDES', 'includes/'); define('DIR_WS_BOXES', DIR_WS_INCLUDES . 'boxes/'); define('DIR_WS_FUNCTIONS', DIR_WS_INCLUDES . 'functions/'); define('DIR_WS_CLASSES', DIR_WS_INCLUDES . 'classes/'); define('DIR_WS_MODULES', DIR_WS_INCLUDES . 'modules/'); define('DIR_WS_LANGUAGES', DIR_WS_INCLUDES . 'languages/'); define('DIR_WS_DOWNLOAD_PUBLIC', 'pub/'); define('DIR_FS_CATALOG', '/web/htdocs/www.100asa.it/home/'); define('DIR_FS_DOWNLOAD', DIR_FS_CATALOG . 'download/'); define('DIR_FS_DOWNLOAD_PUBLIC', DIR_FS_CATALOG . 'pub/'); // define our database connection define('USE_PCONNECT', 'false'); // use persistent connections? define('STORE_SESSIONS', 'mysql'); // leave empty '' for default handler or set to 'mysql' ?> I'm changing session as You said... try visit my osc test (osc is original) and stop all cookies (www.100asa.it/testosc) Skype: centoasa Skype: remigioruberto
♥Vger Posted December 13, 2004 Posted December 13, 2004 The configure.php file you posted is okay, apart from one 'suspect' entry. Which is: /web/htdocs/www.100asa.it/home/ What's the 'home' for on the end of this line? Your website is installed in the root directory. But maybe it's just the way your server works. I would get rid of this code, as most people have browsers which block pop-ups it's a waste of time having it, and the cookie commands may be what is causing problems if people have cookies blocked on their computer. <script language="javascript"> // BOF: Session PopUp Script // First define variables: // "status" turns the popups function "on" or "off" var status="off" // "poponce" makes popup load only ONCE if "true" or every time if "false" var poponce="true" // "popurl" defines the popup page to show var popurl="popup_promo.php" function openpopup(){ winpops=window.open(popurl,"popup","width=200,height=200,screenX=150,screenY=150,top=150,left=150") } function get_cookie(Name) { //this function is used only if variable "poponce" above is set to "true" var search = Name + "=" var returnvalue = ""; if (document.cookie.length > 0) { offset = document.cookie.indexOf(search) if (offset != -1) { // if cookie exists offset += search.length // set index of beginning of value end = document.cookie.indexOf(";", offset); // set index of end of cookie value if (end == -1) end = document.cookie.length; returnvalue=unescape(document.cookie.substring(offset, end)) } } return returnvalue; } function loadpopup(){ if (status=="on") { // if popups turned on if (get_cookie('alreadypopped')==''){ // and cookie not set openpopup() // then show popup if (poponce=="true") { // if popup once only required document.cookie="alreadypopped=yes" // then set a cookie } } // cookie is already set; so do nothing } } loadpopup() // EOF: Session PopUp </script> Vger
100asa Posted December 13, 2004 Author Posted December 13, 2004 I've understand the problem: last night I've tried to install this contribution: http://www.oscommerce.com/community/contributions,952/ but the error is: [/code]find the lines if (isset($sid)) { $link .= $separator . $sid; } and change to if (isset($sid) && ( !$kill_sid ) ) { $link .= $separator . $sid; } in the original version os osc (and last night mine too) is: if (isset($_sid)) { $link .= $separator . $_sid; } When I'm deleted this contribution I've forget the underscore!!!Oh, God, the underscore!!!Thank you everybody for support! :D :D :D :D Skype: centoasa Skype: remigioruberto
♥Vger Posted December 13, 2004 Posted December 13, 2004 Agh! If only you had told us that you had tried to install the SID Killer contribution! Vger
100asa Posted December 13, 2004 Author Posted December 13, 2004 Excuse me! :blush: This contribution is bug? ps: in who's online I see often googlebot with sessionID (I've prevent spider session true). Skype: centoasa Skype: remigioruberto
♥Vger Posted December 13, 2004 Posted December 13, 2004 Excuse me! This contribution is bug? I tried to make it work, but in the words of the person who wrote it "It doesn't work." re., googlebot - look in your includes/spiders.txt file to see if googlebot and frooglebot are listed. Vger
100asa Posted December 13, 2004 Author Posted December 13, 2004 I update spiders.txt from this contribution: http://www.oscommerce.com/community/contributions,2455 I've found: ooglebot It's right? Skype: centoasa Skype: remigioruberto
100asa Posted December 13, 2004 Author Posted December 13, 2004 Into who's online section I've many Googlebot with session id, and prevent spider session is able. What's the problem? Skype: centoasa Skype: remigioruberto
♥Vger Posted December 13, 2004 Posted December 13, 2004 ooglebot There's a 'g' missing there. Take a look at your website's statistics package to see how many entries you have for cookie_usage.php. If googlebot is coming back to spider your website after it has already spidered it with a session id, then it will try to enter with the old session id and get booted off to the cookie_usage.php page because it is no longer allowed to use sessions. This will correct itself in time. Vger
100asa Posted December 13, 2004 Author Posted December 13, 2004 Excuse me, I don't understand it very well. Where I take look? cookie_usage.php is the page of cookie must enabled to see this website... Please, more clear! the author of contribution said "ooglebot" for googlebot and frooglebot Skype: centoasa Skype: remigioruberto
♥Vger Posted December 13, 2004 Posted December 13, 2004 Edit the file to include both googlebot and frooglebot, don't use ooglebot. The cookie_usage page is where googlebot ends up if it comes to your website using a link with a session id in it, when it is not allowed to use session ids. This will correct itself in time. Vger
100asa Posted December 13, 2004 Author Posted December 13, 2004 Into session configuration I've force cookie use false, so Google don't go to cookie_usage page much time ago. I've change into spiders.txt googlebot, but I continue to see google with session ID. I think I've some problem into spider (or osc) configuration. ps: I've solve the problem to enter with all cookies disable, but I see Google or Yahoo stop to logoff page to 1:22:38 (is it normal?) Skype: centoasa Skype: remigioruberto
100asa Posted December 13, 2004 Author Posted December 13, 2004 Instead of name of bots, it's possible insert an IP address to stop creation session ID into spider.txt? Skype: centoasa Skype: remigioruberto
Recommended Posts
Archived
This topic is now archived and is closed to further replies.