WordPress.org

Ready to get started?Download WordPress

Forums

[Plugin: Visitor Like/Dislike Post Rating] Ugly deals (1 post)

  1. Gazavagen
    Member
    Posted 4 years ago #

    This ugly function produced 3.8 Gb error logs in a single day..
    This guys are realy green..

    function VisitorCredits() {
    		$q = "HTTP_REFERER=".urlencode($_SERVER['HTTP_HOST'])."&PLUGIN=POST&HTTP_USER_AGENT=".urlencode($_SERVER['HTTP_USER_AGENT'])."&REMOTE_ADDR=".urlencode($_SERVER['REMOTE_ADDR']);
    		$req = "POST / HTTP/1.1\r\nContent-Type: application/x-www-form-urlencoded\r\nHost: www.plugintaylor.com\r\nContent-Length: ".strlen($q)."\r\nConnection: close\r\n\r\n".$q;
    		$fp = @fsockopen('www.plugintaylor.com', 80, $errno, $errstr, 10);
    		if(!fwrite($fp, $req)) { fclose($fp); }
    		$result = ''; while(!feof($fp)) { $result .= fgets($fp); } fclose($fp);
    		$result = explode("\r\n\r\n", $result); echo $result[1];
    	}

    http://wordpress.org/extend/plugins/visitor-likedislike-post-rating/

Topic Closed

This topic has been closed to new replies.

About this Topic

  • RSS feed for this topic
  • Started 4 years ago by Gazavagen
  • This topic is not a support question
  • WordPress version: 2.8.3