Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

is there a script to make a visitor visit a sponsor before going on?

Status
Not open for further replies.

JoeM6

Programmer
Aug 5, 2000
53
US
I have a webpage, with many games. I would like it so the visitor has to visit my sponsor before being able to go to the page with the games on it, Is there a script for that? Please help me

JoeM6
JPMJR11@aol.com
 
I don't know of a script to do that. I guess you might serve your page from a piece of CGI and, using the the 'HTTP_REFERER' var, check to see if the user is coming from one of your sponsors. If they are not, then give them a page that tells them to visit a sponsor. If they are coming from a sponsor, let get to the games. Note that the HTTP_REFERER is not dependably populated. You could play around with a little to see if it would do what you need.

'just my humble opinion .... but, I would be out there quick after getting rail roaded like that.

Good Luck.




keep the rudder amid ship and beware the odd typo
 
As long as your forcing people to visit your sponsors, why not just save them the trouble & force the sponsor on your visitors. Use the window.open function from JavaScript to throw all of your sponsors sites out at them as the page loads. >;()

Or, screw the sponsors and create a Frameset with dimensions 0%, 100%. Have the sponsors page load in the hidden frame. They'll NEVER KNOW!!! hehehe
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top