![]() |
![]() |
![]() |
||||
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 |
Confirmed User
Industry Role:
Join Date: Aug 2001
Location: Nomad
Posts: 5,196
|
java redirect?
Anyone know how to redirect from a certain referral url in java script?
Say someone is linking to my site from gfy.com I want all the people who click from there to goto lemonparty.org Anyone know how?
__________________
. |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#2 |
Confirmed User
Industry Role:
Join Date: Aug 2001
Location: Nomad
Posts: 5,196
|
$25 paypal for it
__________________
. |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#3 |
there's no $$$ in porn
Industry Role:
Join Date: Jul 2005
Location: icq: 195./568.-230 (btw: not getting offline msgs)
Posts: 33,063
|
icq me
![]() |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#4 |
Confirmed User
Join Date: Dec 2004
Location: NL (Eindhoven), CZ(Prague), FR(Concarneau)
Posts: 3,958
|
Just use htaccess
RewriteEngine on RewriteCond %{HTTP_REFERER} ^http(s)?://(www\.)?gfy.com.*$ [NC] RewriteRule .* http://www.lemonparty.org [R,L]
__________________
[img]http://****************/sig/fhv3_j2_624x80_2.gif[/img] $35-40 Per Signup, 60-70% Rev Share, over 80 Sites, Exclusive Sites, tons of free content 14,000+ Free hosted Galleries, RSS feeds, Domain Hosting, Embedded Flash Movies Join Fetish Hits now! ICQ: 358652230 |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#5 |
Confirmed User
Industry Role:
Join Date: Aug 2001
Location: Nomad
Posts: 5,196
|
__________________
. |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#6 | |
Confirmed User
Industry Role:
Join Date: Aug 2001
Location: Nomad
Posts: 5,196
|
Quote:
![]()
__________________
. |
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#7 |
Confirmed User
Join Date: Jan 2006
Location: England
Posts: 1,405
|
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#8 |
Confirmed User
Industry Role:
Join Date: Mar 2007
Location: Arizona
Posts: 8,437
|
I have the code somewhere, let me see if I can dig it up.
__________________
Conversion Sharks - 1,000+ adult dating offers, traffic management, and consistently high payouts. We will guarantee and beat your current EPC to win your dating traffic! Skype: ConversionSharks || Email: info /@/ conversionsharks.com |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#9 |
Too lazy to set a custom title
Industry Role:
Join Date: Aug 2002
Posts: 55,297
|
why would you waste it with javascript when htaccess can do it without editing any code on your site, seems silly
__________________
Since 1999: 69 Adult Industry awards for Best Hosting Company and professional excellence. ![]() WP Stuff |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#10 |
Confirmed User
Join Date: Dec 2004
Location: NL (Eindhoven), CZ(Prague), FR(Concarneau)
Posts: 3,958
|
<script>
if((/^https?\:\/\/(www\.)?gfy\.com/).test(document.referrer)){ location.href="http://www.lemonparty.org"; } </script> Please send payment to [email protected] Place the script in your header
__________________
[img]http://****************/sig/fhv3_j2_624x80_2.gif[/img] $35-40 Per Signup, 60-70% Rev Share, over 80 Sites, Exclusive Sites, tons of free content 14,000+ Free hosted Galleries, RSS feeds, Domain Hosting, Embedded Flash Movies Join Fetish Hits now! ICQ: 358652230 |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#11 |
Confirmed User
Join Date: Dec 2004
Location: NL (Eindhoven), CZ(Prague), FR(Concarneau)
Posts: 3,958
|
So, something like this:
<html> <head> <title>Title goes here</title> <script> if((/^https?\:\/\/(www\.)?kwackin\.com/).test(document.referrer)){ location.href="http://www.google.com"; } </script> </head> <body> GFY'ers love lemonparty </body> </html>
__________________
[img]http://****************/sig/fhv3_j2_624x80_2.gif[/img] $35-40 Per Signup, 60-70% Rev Share, over 80 Sites, Exclusive Sites, tons of free content 14,000+ Free hosted Galleries, RSS feeds, Domain Hosting, Embedded Flash Movies Join Fetish Hits now! ICQ: 358652230 |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#12 | |
Totally Borked
Industry Role:
Join Date: Feb 2005
Posts: 6,284
|
I think he wants all the links to change, not an auto-redirect.
Could be wrong though btw, in your regex, no need to escape the colon \: Quote:
__________________
![]() For coding work - hit me up on andy // borkedcoder // com (consider figuring out the email as test #1) All models are wrong, but some are useful. George E.P. Box. p202 |
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#13 |
Confirmed User
Industry Role:
Join Date: Aug 2001
Location: Nomad
Posts: 5,196
|
worked
![]() payment sent
__________________
. |
![]() |
![]() ![]() ![]() ![]() ![]() |