Solved

Forwarding affilates through my site first

Posted on 2009-07-04
4
240 Views
Last Modified: 2012-05-07
i have various affiliate (casinos) ok. i am writing various books, now i want to place links within my books that instead of directly feeding to website, they come to mysite and i can forward them then on to the website.

two reason for this, i want to control my affiliates and scondly see which casinos etc are the most popular.

But i dont know how to write this. can some one help me out.
0
Comment
Question by:ilike-centre
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
4 Comments
 
LVL 5

Accepted Solution

by:
Jagarm earned 250 total points
ID: 24777382
If you want to record information about your affiliates, you may need to use a server side language such as php, asp/asp.net or anything else.

In PHP for example, if you want to link to a web site, but first want to record the number of visits to that web site, is to pass the web site as follow:

http://www.yourdomain.com/affiliate.php?site=www.google.com,

so in the server side of affiliate.php you would read the site as $_GET['site'] and do whatever you want and then direct the user to the site they clicked.

I'm not really sure what web language you are most comfortable with, and it depends if your host supports it, these days almost all host have php installed
0
 
LVL 2

Assisted Solution

by:cedricdo
cedricdo earned 250 total points
ID: 24777976
I would recommend using a script that doesn't show the URL as with Jagarm's example. If I were reading a book, I would skip the affiliate.php and just go directly to the site. Have someone make you one that looks like so: a.example.com/1

That way they can't find out the URL without going though your website first.

(I will try to make something like this, it might take a while though)
0
 
LVL 5

Expert Comment

by:Jagarm
ID: 24778531
cedricdo, that's a good idea as well, and have a table where the id is the primary key and another field let's say site to have the site name, and any other information they need.
0

Featured Post

[Webinar] How Hackers Steal Your Credentials

Do You Know How Hackers Steal Your Credentials? Join us and Skyport Systems to learn how hackers steal your credentials and why Active Directory must be secure to stop them. Thursday, July 13, 2017 10:00 A.M. PDT

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This is a PowerShell web interface I use to manage some task as a network administrator. Clicking an action button on the left frame will display a form in the middle frame to input some data in textboxes, process this data in PowerShell and display…
This article discusses how to create an extensible mechanism for linked drop downs.
In this tutorial viewers will learn how to position overlapping items using z-index in CSS. They will also learn the restrictions on the z-index property.  Create a new HTML document with an internal stylesheet.: Create a div in CSS and name it Red.…
The viewer will learn the basics of jQuery including how to code hide show and toggles. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery…

690 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question