Scripts
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsWeb Site ManagementScripts

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
Get inside! Sample the range of functionality easily built with JMSL Library for Time Series Data Analysis, Heat Maps, Portfolio Optimization, Monte Carlo Simulation, Stock Price Charting and more. Download Now!
  #1  
Old August 11th, 2004, 08:50 AM
puddleman puddleman is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jul 2004
Posts: 3 puddleman User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 25 m 8 sec
Reputation Power: 0
Question Multiple Referrer Redirection

Hi Everyone,

I'm trying to find a (free if possible) php script that will quickly and easily redirect any visitors from a list of domains (about 10 in total just now)? I've come across a lot that will do one domain or will block by IP but not one that will allow me to easily add in a number of domains to be checked against.

Thanks for any help anyone can provide.

Reply With Quote
  #2  
Old August 24th, 2004, 03:27 PM
DJ_Max DJ_Max is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Aug 2004
Location: Chicago, IL USA
Posts: 37 DJ_Max User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 h 51 m 35 sec
Reputation Power: 4
Send a message via ICQ to DJ_Max Send a message via AIM to DJ_Max Send a message via MSN to DJ_Max Send a message via Yahoo to DJ_Max
This can be done pretty easy. Do you want like a main page, where the redirection will take place?

Reply With Quote
  #3  
Old August 24th, 2004, 04:53 PM
obi_wonton's Avatar
obi_wonton obi_wonton is offline
(not) Banned
Dev Shed Novice (500 - 999 posts)
 
Join Date: Apr 2004
Location: Toronto, CANADA
Posts: 598 obi_wonton User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 9 h 4 m 13 sec
Reputation Power: 5
In PHP:

<?php
if(strpos("http://bad_website.com" , $_SERVER[HTTP_REFERER])){
header("Location: http://where_to_go.com");
//copy this for as many domains as you need...
?>
Regular html goes here, and name the page with a .php extension...
__________________
May the source be with you - obi_wonton

Reply With Quote
  #4  
Old August 27th, 2004, 05:31 AM
puddleman puddleman is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jul 2004
Posts: 3 puddleman User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 25 m 8 sec
Reputation Power: 0
Thumbs up Thanks

I've come to the conclusion that the easiest way would be to do it this way with an include at the start of the page and just repeat the code for the banded sites. We're not talking lots of sites just now so shouldn't be a big problem. I think I'll start work on a mysql solution when I've time and post it here when done.

Thanks for the help.

Reply With Quote
Reply

Viewing: Dev Shed ForumsWeb Site ManagementScripts > Multiple Referrer Redirection


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 6 hosted by Hostway