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 03-18-2009, 01:05 PM   #1
ztik
Confirmed User
 
ztik's Avatar
 
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?
__________________
.
ztik is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 03-18-2009, 02:01 PM   #2
ztik
Confirmed User
 
ztik's Avatar
 
Industry Role:
Join Date: Aug 2001
Location: Nomad
Posts: 5,196
$25 paypal for it
__________________
.
ztik is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 03-18-2009, 02:07 PM   #3
u-Bob
there's no $$$ in porn
 
u-Bob's Avatar
 
Industry Role:
Join Date: Jul 2005
Location: icq: 195./568.-230 (btw: not getting offline msgs)
Posts: 33,063
icq me
u-Bob is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 03-18-2009, 02:14 PM   #4
Sam Granger
Confirmed User
 
Sam Granger's Avatar
 
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
Sam Granger is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 03-18-2009, 03:19 PM   #5
ztik
Confirmed User
 
ztik's Avatar
 
Industry Role:
Join Date: Aug 2001
Location: Nomad
Posts: 5,196
Quote:
Originally Posted by u-Bob View Post
icq me

don't use icq my aim is willraim though
__________________
.
ztik is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 03-18-2009, 03:22 PM   #6
ztik
Confirmed User
 
ztik's Avatar
 
Industry Role:
Join Date: Aug 2001
Location: Nomad
Posts: 5,196
Quote:
Originally Posted by Sam Granger View Post
Just use htaccess

RewriteEngine on
RewriteCond %{HTTP_REFERER} ^http(s)?://(www\.)?gfy.com.*$ [NC]
RewriteRule .* http://www.lemonparty.org [R,L]
looking for java
__________________
.
ztik is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 03-18-2009, 03:36 PM   #7
xentech
Confirmed User
 
xentech's Avatar
 
Join Date: Jan 2006
Location: England
Posts: 1,405
Quote:
Originally Posted by ztik View Post
looking for java
Why, are you going to put it on somebody else's site?
xentech is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 03-18-2009, 03:38 PM   #8
st0ned
Confirmed User
 
st0ned's Avatar
 
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
st0ned is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 03-18-2009, 03:52 PM   #9
fris
Too lazy to set a custom title
 
fris's Avatar
 
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
fris is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 03-18-2009, 04:16 PM   #10
Sam Granger
Confirmed User
 
Sam Granger's Avatar
 
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
Sam Granger is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 03-18-2009, 04:17 PM   #11
Sam Granger
Confirmed User
 
Sam Granger's Avatar
 
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
Sam Granger is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 03-18-2009, 04:34 PM   #12
borked
Totally Borked
 
borked's Avatar
 
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:
Originally Posted by Sam Granger View Post
<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
__________________

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
borked is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 03-18-2009, 04:35 PM   #13
ztik
Confirmed User
 
ztik's Avatar
 
Industry Role:
Join Date: Aug 2001
Location: Nomad
Posts: 5,196
worked

payment sent
__________________
.
ztik 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.