Results 1 to 3 of 3
  1. #1
    Join Date
    Feb 2009
    Location
    UK
    Posts
    1,239
    Plugin Contributions
    1

    Default Bots not respecting uppercase characters

    ZC v1.5.8a
    PHP 8.0 & 8.1
    IH5 v5.3.4
    Zen Colorbox v2.1.3

    I have bots - mostly from Microsoft but also others - that are not respecting the capitalisation in 'pID' within the <noscript> ...</noscript> of additional images, thereby creating log PHP warnings.

    The <noscript> link generated by ZC is
    Code:
    https://MY_DOMAIN/index.php?main_page=popup_image_additional&amp;pID=303&amp;pic=2&amp;products_image_large_additional=images/classes/class_1.jpg
    However, you can see in the log file entry below that the link being crawled is
    Code:
    /index.php?main_page=popup_image_additional&pid=303&pic=2&products_image_large_additional=images/classes/class_1.jpg
    Code:
    [13-Feb-2024 00:03:11 Europe/London] Request URI: /index.php?main_page=popup_image_additional&pid=303&pic=2&products_image_large_additional=images/classes/class_1.jpg, IP address: 40.77.167.132, Language id 1
    #1  require(/home/MY_DOMAIN/public_html/includes/modules/pages/popup_image_additional/header_php.php) called at [/home/MY_DOMAIN/public_html/index.php:35]
    --> PHP Warning: Undefined array key "pID" in /home/MY_DOMAIN/public_html/includes/modules/pages/popup_image_additional/header_php.php on line 23.
    Would the best way to stop these warnings be to have an .htaccess 301 rewrite from 'pid' to 'pID' (although I am finding it difficult to create the correct code)?

    Or perhaps there's a change to 'includes/modules/pages/popup_image_additional/header_php.php on line 23' that would achieve the same:

    line #23
    Code:
    $products_values_query = $db->bindVars($products_values_query, ':productsID', $_GET['pID'], 'integer');
    Last edited by simon1066; 15 Feb 2024 at 11:55 AM.
    Simon

  2. #2
    Join Date
    Nov 2007
    Location
    Woodbine, Georgia, United States
    Posts
    4,020
    Plugin Contributions
    61

    Default Re: Bots not respecting uppercase characters

    Leave it to Microsoft ... I personally would block the popups from being indexed & crawling. Think about it, the page has no value in the search index, they don't even have a home link on the popup page. Image search can be helpful for some products, but even so your large image is already crawled and indexed on the product page.

    ~Melanie
    PRO-Webs, Inc. :: Recent Zen Cart Projects :: Zen Cart SEO – 12 Steps to Success
    **I answer questions in the forum, private messages are NOT answered. You are welcome to contact us via our website for professional engagements.

  3. #3
    Join Date
    Feb 2009
    Location
    UK
    Posts
    1,239
    Plugin Contributions
    1

    Default Re: Bots not respecting uppercase characters

    Quote Originally Posted by mprough View Post
    Leave it to Microsoft ... I personally would block the popups from being indexed & crawling. Think about it, the page has no value in the search index, they don't even have a home link on the popup page. Image search can be helpful for some products, but even so your large image is already crawled and indexed on the product page.

    ~Melanie
    Very good points, I will do as suggested.
    Simon

 

 

Similar Threads

  1. v154 fake accounts regex for bots not working
    By edvon in forum General Questions
    Replies: 4
    Last Post: 11 Mar 2021, 09:44 AM
  2. v154 not Respecting Context of a Link to a Category/Product page using CEON URI MAPPING
    By lruskauff in forum All Other Contributions/Addons
    Replies: 3
    Last Post: 11 Jun 2015, 07:17 AM
  3. Columns not respecting width
    By PaintBall in forum Templates, Stylesheets, Page Layout
    Replies: 7
    Last Post: 4 May 2007, 05:52 AM
  4. Salemaker not respecting Time offset?
    By jerkynet in forum All Other Contributions/Addons
    Replies: 0
    Last Post: 25 Nov 2006, 06:18 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg
Zen-Cart, Internet Selling Services, Klamath Falls, OR