1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

A trick when using Scrapebox

Discussion in 'Making Money' started by maineyak, Jul 30, 2011.

  1. maineyak

    maineyak Power Member

    Joined:
    Mar 27, 2008
    Messages:
    600
    Likes Received:
    555
    If the blog owner thinks you're linking to them, you have a better chance of your comment being approved. This is a trick with W@rdPress

    Download and install this plugin:
    Code:
    http://wordpress.org/extend/plugins/exec-php/
    Create a new WP page, name it Featured Site, Site of Interest, Cool Site, whatever....

    Add this code to it:

    I'm not pasting exactly what I use, as noobs will ccp it without spinning it at all.
    Code:
    Here's a cool site:<a href=http://<?php
    echo $_SERVER['HTTP_HOST'];
    ?>>http://<?php
    echo $_SERVER['HTTP_HOST'];
    ?>
    I used HTTP_HOST rather then REFERER, chances are the blog owner would be coming to your site via their admin panel, and you don't want their admin panel showing as the referring url. In your comment, make a reference that you linked to them, and include your WP url.

    They'll see you gloating over their site, and better your chances of your comment sticking.

    Happy Scraping! :cool:
     
    • Thanks Thanks x 1
  2. neu009

    neu009 Jr. VIP Jr. VIP Premium Member

    Joined:
    Jul 29, 2009
    Messages:
    1,022
    Likes Received:
    272
    similar version had been shared before and I think the same issue would be : you'd have to disallow index of that site etc or if they come from google etc it kinda looks weird. of course only works if they actually click the link and not just copy and paste it or when they recheck...
     
  3. maineyak

    maineyak Power Member

    Joined:
    Mar 27, 2008
    Messages:
    600
    Likes Received:
    555
    That was the wrong code, this is the right one:
    Code:
    <?
       $referer = $_SERVER["HTTP_REFERER"];
       $ipaddress = $_SERVER['REMOTE_ADDR'];	//  Requestor IP addr
       $request_uri = ltrim($_SERVER['REQUEST_URI'],'/');
    if($_SERVER["HTTP_REFERER"])
    {
       $parsed = @parse_url(strtolower($referer));
       if($parsed[host] && !eregi(strtolower("YOURDOMAIN.COM"),$parsed[host]))
       {
    	  echo '<a href="http://';
    	  echo str_replace("statistics.","www.",str_replace("stats.","www.",$parsed[host]));
    	  echo '/" target="_blank">http://www.';
    	  echo ucfirst(str_replace("statistics.","",str_replace("stats.","",str_replace("www.","",$parsed[host]))))."</a>";
       }
    }
    ?>