Any help with this would be appreciated!

by webbie
5 replies
Anyone that can help with a workable solution I would be very grateful. I don't think this is a big problem to solve but I might be wrong about that.

Anyway, here's the problem. I'm using WP for the site. A plugin does not exist for this - as far as I know and I did an extensive search. If you know of one cool! Problem solved... but if not... here goes:

I have a page on my WordPress site that is a special offer for my partners to send traffic to and I don't want anyone else to see it who is not clicking the link from my partners website.

So let's say my partners website is "" and I want them to link to a special offer page that says "Partner1 Visitors Welcome!".

But the problem is that the "Partner1" page on my site can be indexed by search engines and anyone else who happens to find it.

My question is how can I restrict the people that access my page to ONLY those who come from "" and then redirect all other visitors to some other link - like my home page for example or another link like a "you don't belong here" page?

So the way I see this working is a plugin that looks at where the domain the person is coming from and if it's "" then they see the specific page for "partner1" if it comes from the domain "" then they see the page for "partner2" anyone else not coming from those domains ( and would be redirected to a "you don't belong here" page.

I need a solution (plugin?) that works for 2-3 partners or more at time.

Thanks, in advance, for the help!

I'll answer any questions and am willing to pay for a working wpplugin that solves this problem.

#appreciated #wp plugin needed
  • Profile picture of the author Michael71
    HTTP referrer

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

    {{ DiscussionBoard.errors[8090303].message }}
  • Profile picture of the author Hatescheese
    The easiest way to accomplish this would be to add a disallows in your robot.txt so those pages don't get indexed, than you wouldn't have to worry about redirects.
    User-agent: *
    Disallow: /Partner1page/
    Disallow: /Partner2page/

    User-agent: Googlebot
    Disallow: /Partner1page/
    Disallow: /Partner2page/

    User-Agent: msnbot
    Disallow: /Partner1page/
    Disallow: /Partner2page/

    User-agent: Slurp
    Disallow: /Partner1page/
    Disallow: /Partner2page/
    {{ DiscussionBoard.errors[8090412].message }}
  • Profile picture of the author FirstSocialApps
    Michael is correct HTTP referrer is where you would want to start with making a PHP script to do this. However the fact that your using WP for your site makes this much more of a pain in the @#$ than it needs to be. Try getting yourself a freelancer to write you a plug in. Expect a cost of around $200 -$250 or so for it.
    {{ DiscussionBoard.errors[8091516].message }}
  • Profile picture of the author webbie
    Thanks for the help everyone!

    It gave me some ideas...


    I Can Predict The Stock Market - Let Me Prove It

    {{ DiscussionBoard.errors[8093903].message }}
    • Profile picture of the author RobinInTexas
      It wouldn't take long to create a child theme and exclude the page based on the $_SERVER['HTTP_REFERER']

      It would have to be a page rather than a post or it would be much more difficult.


      ...Even if you're on the right track, you'll get run over if you just set there.
      {{ DiscussionBoard.errors[8095809].message }}

Trending Topics