diff --git a/README.en.md b/README.en.md index 0408036..8960f3b 100644 --- a/README.en.md +++ b/README.en.md @@ -105,7 +105,6 @@ The configurations are organized in `data/`: - `domain_rules.php`: Site-specific rules - `global_rules.php`: Rules that apply to all sites - `blocked_domains.php`: List of blocked sites -- `user_agents.php`: User Agents configurations ### Translations diff --git a/README.md b/README.md index 3be8096..a43d213 100644 --- a/README.md +++ b/README.md @@ -105,7 +105,6 @@ As configurações estão organizadas em `data/`: - `domain_rules.php`: Regras específicas para cada site - `global_rules.php`: Regras que se aplicam a todos os sites - `blocked_domains.php`: Lista de sites bloqueados -- `user_agents.php`: Configurações de User Agents ### Traduções diff --git a/app/config.php b/app/config.php index c7ecc3b..e61cfe6 100644 --- a/app/config.php +++ b/app/config.php @@ -99,7 +99,6 @@ try { * Load system configurations * Carrega as configurações do sistema */ - define('USER_AGENTS', require __DIR__ . '/data/user_agents.php'); define('BLOCKED_DOMAINS', require __DIR__ . '/data/blocked_domains.php'); define('DOMAIN_RULES', require __DIR__ . '/data/domain_rules.php'); define('GLOBAL_RULES', require __DIR__ . '/data/global_rules.php'); diff --git a/app/data/user_agents.php b/app/data/user_agents.php deleted file mode 100644 index ac8f8c1..0000000 --- a/app/data/user_agents.php +++ /dev/null @@ -1,25 +0,0 @@ -userAgents = USER_AGENTS; $this->dnsServers = explode(',', DNS_SERVERS); $this->rules = new Rules(); $this->cache = new Cache(); @@ -326,7 +339,7 @@ class URLAnalyzer private function fetchContent($url) { $curl = new Curl(); - $this->setupBasicCurlOptions($curl); + $this->setupBasicCurlOptions($curl, $url); $host = parse_url($url, PHP_URL_HOST); $host = preg_replace('/^www\./', '', $host);