Skip to content

What to put into Reciprocal URL Field

edited April 2013 in Need Help
how this can be used?

I saw a lot of directory request to have a back link. What is the trick to pass this?

thx

Comments

  • SvenSven www.GSA-Online.de
    Mouse over the field to get the hint.
  • edited April 2013
    @Sven I moused over the field and I still don't get the "hint". Can you explain further?
  • SvenSven www.GSA-Online.de

    It's not that hard. A reciprocal URL should show the URL of the site you submit to. Now you can e.g.use an URL like...

    http://www.something.com/?url=http://url-you-submit.to-com

    Your site however takes the parameter url and knows it should place a link on your site. Get it? 

  • o.k. but, I don't have to actually place the link on my site, right?
  • SvenSven www.GSA-Online.de
    That link would only be visible if you open the URL with that parameter having the other URL in it. And now please remove the "hacker" from your name ;)
  • @Sven - the name comes from this:

    image

    Angelina Jolie's first movie... ;)
  • edited April 2013
    how I copy the details which appear when mouse over the field?

  • if its a hint for an engine than double click that engine to open it in the editor and copy the "hint"-line to your clipboard.
  • hint=Make sure your site can evaluate the parameter "showlink" (or whatever you use as variable) can place a link like...

    \n echo

    '<a href="'.$_GET['showlink'].'">'.$_GET['showlink'].'</a>';\n

    ...on the page.

    What exactly we should place on the website?

    Thx


  • I have placed the code on my website but the %wanted_url% doesn't appearon site


  • this is what have to place on your website:

    <?php
    echo
    '<a href="'.$_GET['showlink'].'">'.$_GET['showlink'].'</a>';
    ?>

    If your website is only html, just add in .htacces

    AddHandler server-parsed .html
    AddHandler application/x-httpd-php5 .htm
    AddHandler application/x-httpd-php5 .html
  • And where to put that? In Before or in body tag
  • SvenSven www.GSA-Online.de
    In body tag of course as it should show the url.
  • I am using wordpress, i did add in the body somewhere down the page the code:
    <?php
    echo
    '<a href="'.$_GET['showlink'].'">'.$_GET['showlink'].'</a>';
    ?>

    When i go to http://www.mysite.com/?showlink=http://www.somedirectory.com/, i see the link in the admin menu of the wordpress http://www.mysite.com/wp-admin/customize.php?url=http://www.mysite.com/?showlink=http://www.somedirectory.com/ with the anchor "Customize"

    Can anyone help please?

  • you should go to appearence/editor, in the right panel look for 

    Main Index Template (index.php


    and before

    </div><!-- #content -->

    add the code



  • edited April 2013
    Thanks for the help.

    In WordPress i had to add this code:
    ------------------------------------------------------------------------------------------------
    <?php
    echo
    '<a href="http://'.$_GET['showlink'].'">'.$_GET['showlink'].'</a>';
    ?>
    ------------------------------------------------------------------------------------------------
    (I had to add an http in the code)

    when I try a  URL with an http i get an 403 error:
    http://www.mysite.com/?showlink=http://www.somedirectory.com/

    when i go to http://www.mysite.com/?showlink=www.somedirectory.com/ without the HTTP i see the link on my site, I guess this will not be good as Directories do ask to add a back link with http and GSA will give the Reciprocal URL with an http.

    I am right?

    I think this is something to do with my php.ini?
  • and BTW, it was not working before because i am using a page as an homepage in wordpress, so i had to add the code in page.php and not in index.php
  • this was removed from GSA?
  • SvenSven www.GSA-Online.de
    GSA = company name....and there was nothing removed.
  • pclwebpclweb UK
    edited July 2013
    has anyone managed to do this using a blank php file.

    i.e http://www.domain.com/links.php?showlink=http://www.google.com

    so need some help with getting this working.. :(
  • bloupbloupbloupbloup Spain
    edited January 2014
    Hi, 

    Due to the concerns above, i decide to improve the code related to showlink. 

    here is what it does:
    If showlink is empty it does not publish anything in the HTML code. 
    If showlink has http missing it will add a http as a prefix. 




    <?php
    $var = $_GET['showlink'];

    if($var != '') 
        {
    if (strpos($var,'http://') === false){
        $var = 'http://'.$var;
    }
    echo '<a href="'.$var.'">'.$var.'</a>';
    }
    ?>
  • edited June 2014
    Thanks everybody

    @Sven
    "please remove the "hacker" from your name" rofl!!

    thanks for sharing @bloupbloup
Sign In or Register to comment.