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

Showing the refferer

Discussion in 'Black Hat SEO' started by michuricane, Sep 16, 2015.

  1. michuricane

    michuricane Junior Member

    Joined:
    Nov 14, 2012
    Messages:
    134
    Likes Received:
    5
    Hello,

    Is it possible to show the refferer page URL info on my redirected page.

    For example, if the refferer page is http://facebook.com/big_boom
    I want that my redirected page show somewhere "big boom".

    Thanks
     
  2. thepointguard

    thepointguard Regular Member Premium Member

    Joined:
    Oct 8, 2010
    Messages:
    368
    Likes Received:
    39
    Home Page:
    Yep! It can be done with a lot of programming languages. For example in php,

    <?php
    $refferal = $_SERVER['HTTP_REFERER'];
    echo $refferal;
    ?>

    Then you can use a regular expression to grab just the end of the url.


     
  3. michuricane

    michuricane Junior Member

    Joined:
    Nov 14, 2012
    Messages:
    134
    Likes Received:
    5
    Thanks but how do I do that? I just want the end of the page, not the full URL
     
  4. michuricane

    michuricane Junior Member

    Joined:
    Nov 14, 2012
    Messages:
    134
    Likes Received:
    5
    I have heard about using this:
    sed -e 's/http://.*.com///'
    But how can I use this command in a HTML page?