![]() |
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 |
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. |
Quote:
http://www.kinky-place.com/stuff/resourcesfs.htm :thumbsup |
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 |
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