outbound links via out.php=URLHERE

by danb12
4 replies
Hi all.

I'm trying to clean up my thousands of outbound links on our website.
I want all the links coming from our domain.

I need the php code to put into my out.php file so it can then, redirect the user to the requested URL

example:
Code:
http://www.MY-DOMAIN.com/out.php=http://google.com
this link would go to google....

Dont need tracking or anything fancy, just basic code..
:confused:

any ideas?

cheers.
#links #outbound #outphpurlhere
  • Profile picture of the author Michael71
    What is the use of this script?
    Signature

    HTML/CSS/jQuery/ZURB Foundation/Twitter Bootstrap/Wordpress/Frontend Performance Optimizing
    ---
    Need HTML/CSS help? Skype: microcosmic - Test Your Responsive Design - InternetCookies.eu

    {{ DiscussionBoard.errors[7894341].message }}
  • Profile picture of the author mojojuju
    Something like this?

    <?php

    if (filter_var($_GET['url'], FILTER_VALIDATE_URL)) {

    header('Location: '.$_GET['url']);

    }

    ?>

    A person who goes to http://www.example.com/out.php?url=http://www.google.com/ would go to http://www.google.com
    Signature

    :)

    {{ DiscussionBoard.errors[7895017].message }}
  • Profile picture of the author asimmanj
    How can i create a redirect link using php for affiliate links. I mean all of the affiliate links should go through redirection to avoid link juice pass or google slap if possible.
    {{ DiscussionBoard.errors[7924663].message }}
  • Profile picture of the author Vrindavan
    >> http://www.example.com/out.php?url=h...www.google.com

    Will this linking method reveal referrer URL information to google.com ?
    Will this linking method pass any page rank ?
    Is this linking method still count as a backlink by search engines ?
    Can i get the click stats of such url too ?

    Thanks for help?
    Signature
    {{ DiscussionBoard.errors[8360315].message }}

Trending Topics