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 11-12-2003, 07:40 PM   #1
Mr Pheer
Top Rated CEO
 
Mr Pheer's Avatar
 
Industry Role:
Join Date: Dec 2002
Location: Las Vegas
Posts: 21,861
Need a script made quick - should be easy

I prefer it done in PHP but perl would work I suppose, just a redirect script.... contact me on AIM screen name MrPheer for more details
__________________
Mr Pheer is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 11-12-2003, 07:41 PM   #2
kad
Confirmed User
 
Join Date: Feb 2003
Location: Brisbane, Australia
Posts: 735
g0t msn?
__________________
lol internet.
kad is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 11-12-2003, 07:47 PM   #3
some_idiot
Confirmed User
 
Join Date: May 2002
Location: Doesn't matter, I'm not buying you another pint!
Posts: 1,511
How many of you guys are going to ask for this today???
You gotta learn to do a quick search or pick up a basic CGI
book. ...Here is perl.

Without logging:

#!/usr/bin/perl

$URL = $ENV{QUERY_STRING};
print "Location: $URL\n\n";


With logging:

#!/usr/bin/perl

$URL = $ENV{QUERY_STRING};
open (LOG,'>>/usr/local/www/cgi-bin/reflog.txt');
print LOG "$ENV{'REMOTE_ADDR'} $ENV{'REMOTE_HOST'} -> $URL\n";
close (LOG);
print "Location: $URL\n\n";

If you've got a wacky client (browser) you may have to send the header.
__________________

This AVS pays my mortgage!
some_idiot is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 11-12-2003, 07:51 PM   #4
Mr Pheer
Top Rated CEO
 
Mr Pheer's Avatar
 
Industry Role:
Join Date: Dec 2002
Location: Las Vegas
Posts: 21,861
Quote:
Originally posted by some_idiot
How many of you guys are going to ask for this today???
You gotta learn to do a quick search or pick up a basic CGI
book. ...Here is perl.

Without logging:

#!/usr/bin/perl

$URL = $ENV{QUERY_STRING};
print "Location: $URL\n\n";


With logging:

#!/usr/bin/perl

$URL = $ENV{QUERY_STRING};
open (LOG,'>>/usr/local/www/cgi-bin/reflog.txt');
print LOG "$ENV{'REMOTE_ADDR'} $ENV{'REMOTE_HOST'} -> $URL\n";
close (LOG);
print "Location: $URL\n\n";

If you've got a wacky client (browser) you may have to send the header.
well that would be nice if i only wanted to redirect to one URL
__________________
Mr Pheer is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 11-12-2003, 07:53 PM   #5
some_idiot
Confirmed User
 
Join Date: May 2002
Location: Doesn't matter, I'm not buying you another pint!
Posts: 1,511
Quote:
Originally posted by MrPheer


well that would be nice if i only wanted to redirect to one URL
Buy that basic CGI book...

$URL = $ENV{QUERY_STRING};

In your webpage call as:

http://yourhost.com/cgi-bin/redirect.pl?http://newurl
__________________

This AVS pays my mortgage!
some_idiot is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 11-12-2003, 07:53 PM   #6
Mr Pheer
Top Rated CEO
 
Mr Pheer's Avatar
 
Industry Role:
Join Date: Dec 2002
Location: Las Vegas
Posts: 21,861
nitr01972 on AIM hooked me up... thanks dude!!
__________________
Mr Pheer is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 11-12-2003, 07:56 PM   #7
Evil1
Confirmed User
 
Industry Role:
Join Date: Mar 2002
Posts: 3,893
Quote:
Originally posted by MrPheer
nitr01972 on AIM hooked me up... thanks dude!!
No prob, $25 for a couple lines of code, who was the asshole?
__________________
Evil1 is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 11-12-2003, 07:58 PM   #8
hudson
Confirmed User
 
Join Date: Jul 2003
Location: Grand Central
Posts: 2,948
Quote:
Originally posted by MrPheer


well that would be nice if i only wanted to redirect to one URL
its the same thing if you want to redirect to many or randomize, etc
hudson 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.