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

Anyone know how to code a php script that does this?

Discussion in 'Black Hat SEO' started by sfidirectory, Jan 29, 2012.

  1. sfidirectory

    sfidirectory Senior Member

    Joined:
    Mar 29, 2010
    Messages:
    899
    Likes Received:
    483
    Occupation:
    Web developer/BTC enthusiast
    Location:
    php artisan make:migration
    Home Page:
    Hi everyone,

    I've seen plenty of sites on the web where you have typed in some search terms in Google and you click on the site link and it says on the page "There is 123 items matching the search term 'black hat seo', browse the results below". I do know a bit of php programming but am not sure on this one... Any help will be greatly appreciated :).
     
  2. infTee

    infTee Junior Member

    Joined:
    Mar 2, 2010
    Messages:
    101
    Likes Received:
    97
    Location:
    Ireland
    It's done by taking apart the referer URL once they land on your site. Some code examples:
    Code:
    http://www.codediesel.com/php/grabbing-the-referrer-search-engine-keywords-for-a-site/
    Code:
    http://www.electrictoolbox.com/php-keywords-search-engine-referer-url/
    Code:
    http://www.phpbuilder.com/board/showpost.php?p=10764880&postcount=7
    Also check out the code in the Wassup WP plugin, which is more advanced and covers many search engines.