Welcome to the GoFuckYourself.com - Adult Webmaster Forum forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact us.

Post New Thread Reply

Register GFY Rules Calendar
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >
Discuss what's fucking going on, and which programs are best and worst. One-time "program" announcements from "established" webmasters are allowed.

 
Thread Tools
Old 09-03-2002, 10:33 AM   #1
justsexxx
Too lazy to set a custom title
 
Join Date: Aug 2001
Location: The Netherlands
Posts: 13,723
Redirect question(if ref then etc)

Hi,

Can this be done?

on my site if ref = pageX.com show Y.html if ref Z.com then show page a.html ?

If so how?

Andre
__________________
Questions?

ICQ: 125184542
justsexxx is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 09-03-2002, 11:06 AM   #2
FuqALot
Confirmed User
 
Join Date: Dec 2001
Location: Malibu
Posts: 3,817
Well, you could do it with a small cgi script.
Just put the following code in index.cgi and upload it to your home directory. Make sure you don't have an index.html, index.shtml etc. or else it won't go to the index.cgi.

#!/usr/bin/perl
$referer = $ENV{'HTTP_REFERER'};
if ($referer =~ m/pageX.com/) { print "Location: y.html\n\n"; }
elsif ($referer =~ m/Z.com/) { print "Location: a.html\n\n"; }
else { print "Location: index1.html\n\n"; }

Visitor will get redirected to index1.html if he/she didn't come from either pageX.com or Z.com.

Hope this helps.
FuqALot is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 09-03-2002, 11:16 AM   #3
kinkyplace
Confirmed User
 
Join Date: Mar 2002
Location: Sweden
Posts: 217
Quote:
Originally posted by justsexxx
Hi,

Can this be done?

on my site if ref = pageX.com show Y.html if ref Z.com then show page a.html ?

If so how?

Andre
Unleash the power of .htaccess!

http://www.kinky-place.com/stuff/resourcesfs.htm

kinkyplace is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 09-03-2002, 11:20 AM   #4
grumpy
Too lazy to set a custom title
 
grumpy's Avatar
 
Join Date: Jan 2002
Location: Holland
Posts: 9,870
can be done in java to

if(document.referrer="http://xxxxx"){document.location="http://xxx";} else { document.location="http://xxx";}

this is the small version...you might want to extract all the page shit from the referrer url
__________________
Don't let greediness blur your vision | You gotta let some shit slide
icq - 441-456-888
grumpy is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 09-03-2002, 11:22 AM   #5
Mikeee
Registered User
 
Join Date: Jun 2002
Posts: 516
What I'd like to know is, if someone hotlinks one of my vids, how do I prevent it from being downloaded on "RIGHT CLICK". cause now, if you click a hotlinked vid from me, it goes to my main page, but if you right click the hotlinked vid and choose "save target as", you can download it. how do I get it to download a html file that i specify instead?
Mikeee is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Post New Thread Reply
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >

Bookmarks



Advertising inquiries - marketing at gfy dot com

Contact Admin - Advertise - GFY Rules - Top

©2000-, AI Media Network Inc



Powered by vBulletin
Copyright © 2000- Jelsoft Enterprises Limited.