![]() |
![]() |
![]() |
||||
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. |
![]() ![]() |
|
Discuss what's fucking going on, and which programs are best and worst. One-time "program" announcements from "established" webmasters are allowed. |
|
Thread Tools |
![]() |
#1 |
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 |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#2 |
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. |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#3 | |
Confirmed User
Join Date: Mar 2002
Location: Sweden
Posts: 217
|
Quote:
http://www.kinky-place.com/stuff/resourcesfs.htm ![]() |
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#4 |
Too lazy to set a custom title
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 |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#5 |
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?
|
![]() |
![]() ![]() ![]() ![]() ![]() |