Plugin Directory

Changeset 3295596


Ignore:
Timestamp:
05/18/2025 06:59:35 AM (11 months ago)
Author:
schorpy
Message:

fix bot bug & add screenshot

Location:
chatizy
Files:
6 added
5 deleted
4 edited

Legend:

Unmodified
Added
Removed
  • chatizy/tags/1.0.0/assets/frontend/dist/manifest.json

    r3293228 r3295596  
    11{
    22  "resources/src/frontend/chat.tsx": {
    3     "file": "assets/chat-d97927e2.js",
     3    "file": "assets/chat-b26bf1cb.js",
    44    "imports": [
    55      "resources/src/frontend/main.jsx"
     
    99  },
    1010  "resources/src/frontend/main.css": {
    11     "file": "assets/main-ceb21b11.css",
     11    "file": "assets/main-73d252a2.css",
    1212    "src": "resources/src/frontend/main.css"
    1313  },
    1414  "resources/src/frontend/main.jsx": {
    1515    "css": [
    16       "assets/main-ceb21b11.css"
     16      "assets/main-73d252a2.css"
    1717    ],
    1818    "dynamicImports": [
     
    2020      "resources/src/frontend/chat.tsx"
    2121    ],
    22     "file": "assets/main-d336c8d0.js",
     22    "file": "assets/main-c70e5074.js",
    2323    "isEntry": true,
    2424    "src": "resources/src/frontend/main.jsx"
  • chatizy/tags/1.0.0/chatizy.php

    r3293228 r3295596  
    7979                'has_addons'          => false,
    8080                'has_paid_plans'      => true,
     81                'has_affiliation'     => 'selected',
    8182                'menu'                => array(
    8283                    'slug'           => 'chatizy',
  • chatizy/tags/1.0.0/libs/Utils/Redirect.php

    r3293228 r3295596  
    6363    {
    6464
    65         // Block bot request
    66         if (isset($_SERVER['HTTP_USER_AGENT'])) {
    67             $user_agent = strtolower(sanitize_text_field(wp_unslash($_SERVER['HTTP_USER_AGENT'])));
    68             $bot_keywords = array(
    69                 'bot',
    70                 'crawl',
    71                 'spider',
    72                 'robot',
    73                 'googlebot',
    74                 'bingbot',
    75                 'slurp',
    76                 'duckduckbot',
    77                 'baiduspider',
    78                 'yandex'
    79             );
    80 
    81             foreach ($bot_keywords as $keyword) {
    82                 if (stripos($user_agent, $keyword) !== false) {
    83                     status_header(403);
    84                     wp_die('Access denied', 'Access Denied', ['response' => 403]);
    85                 }
    86             }
    87         }
    88 
    8965        $path_parts = explode('/', $this->current_slug);
    9066
     
    9874            }
    9975
     76            // Block bot request
     77            if (isset($_SERVER['HTTP_USER_AGENT'])) {
     78                $user_agent = strtolower(sanitize_text_field(wp_unslash($_SERVER['HTTP_USER_AGENT'])));
     79                $bot_keywords = array(
     80                    'bot',
     81                    'crawl',
     82                    'spider',
     83                    'robot',
     84                    'googlebot',
     85                    'bingbot',
     86                    'slurp',
     87                    'duckduckbot',
     88                    'baiduspider',
     89                    'yandex'
     90                );
    10091
     92                foreach ($bot_keywords as $keyword) {
     93                    if (stripos($user_agent, $keyword) !== false) {
     94                        status_header(403);
     95                        wp_die('Access denied', 'Access Denied', ['response' => 403]);
     96                    }
     97                }
     98            }
    10199            function generateChatId(): string
    102100            {
  • chatizy/tags/1.0.0/readme.txt

    r3293645 r3295596  
    3333  Built-in form that sends inquiries directly to your email or WhatsApp.
    3434
    35 - ** Click Tracking & Lead Reporting**
     35- **Click Tracking & Lead Reporting**
    3636  Automatically track incoming clicks on agents as leads. View reports including browser, device type, and operating system to better understand your visitors.
    3737
    38 - ** Dark Mode Support**
     38- **Dark Mode Support**
    3939  Chatizy automatically adapts to dark themes or lets you enable dark styling manually.
    4040
     
    69692. Agent Page.
    70703. Setting page.
     714. Frontend Widget.
    7172
    72 == Contributing ==
    73 For detailed information on how to contribute, please refer to the `README.md` file located in the plugin directory.
    7473
    7574== Changelog == 
Note: See TracChangeset for help on using the changeset viewer.