GoFuckYourself.com - Adult Webmaster Forum

GoFuckYourself.com - Adult Webmaster Forum (https://gfy.com/index.php)
-   Fucking Around & Business Discussion (https://gfy.com/forumdisplay.php?f=26)
-   -   Redirect question(if ref then etc) (https://gfy.com/showthread.php?t=75113)

justsexxx 09-03-2002 10:33 AM

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

FuqALot 09-03-2002 11:06 AM

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.

kinkyplace 09-03-2002 11:16 AM

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

:thumbsup

grumpy 09-03-2002 11:20 AM

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

Mikeee 09-03-2002 11:22 AM

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?


All times are GMT -7. The time now is 07:37 AM.

Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc123