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 06-03-2010, 05:51 PM   #1
Doctor Feelgood
Confirmed User
 
Doctor Feelgood's Avatar
 
Industry Role:
Join Date: Nov 2005
Location: RI
Posts: 2,112
how can I redirect my mobile traffic?

how can I redirect my mobile traffic? Is there a FREE script I can use?

dont reply with "hit me up and ill hook you up" kinda shit.
just post it here
Doctor Feelgood is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 06-03-2010, 05:53 PM   #2
DateDoc
Outside looking in.
 
DateDoc's Avatar
 
Industry Role:
Join Date: Feb 2005
Location: To Hell You Ride
Posts: 14,243
Sign up for one of the mobile sponsors and see what redirect code they use.
__________________
DateDoc is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 06-03-2010, 07:24 PM   #3
Doctor Feelgood
Confirmed User
 
Doctor Feelgood's Avatar
 
Industry Role:
Join Date: Nov 2005
Location: RI
Posts: 2,112
does this work?

Code:
<?php

if(checkmobile()) header("Location:http://mobile.bangbrosnetwork.com/t1/pps=code/");

function checkmobile(){

if(preg_match("/iphone/i",$_SERVER["HTTP_USER_AGENT"])) return false;

if(preg_match("/Trident/i",$_SERVER["HTTP_USER_AGENT"])) return false;

if(isset($_SERVER["HTTP_X_WAP_PROFILE"])) return true;

if(preg_match("/wap\.|\.wap/i",$_SERVER["HTTP_ACCEPT"])) return true;

if(isset($_SERVER["HTTP_USER_AGENT"])){

if(preg_match("/Creative\ AutoUpdate/i",$_SERVER["HTTP_USER_AGENT"])) return false;

if(preg_match("/MSIE/i",$_SERVER["HTTP_USER_AGENT"])) return false;

$uamatches = array("midp", "j2me", "avantg", "docomo", "novarra", "palmos", "palmsource", "240x320", "opwv", "chtml", "pda", "windows\ ce", "mmp\/", "blackberry", "mib\/", "symbian", "wireless", "nokia", "hand", "mobi", "phone", "cdm", "up\.b", "audio", "SIE\-", "SEC\-", "samsung", "HTC", "mot\-", "mitsu", "sagem", "sony", "alcatel", "lg", "erics", "vx", "NEC", "philips", "mmm", "xx", "panasonic", "sharp", "wap", "sch", "rover", "pocket", "benq", "java", "pt", "pg", "vox", "amoi", "bird", "compal", "kg", "voda", "sany", "kdd", "dbt", "sendo", "sgh", "gradi", "jb", "\d\d\di", "moto");

foreach($uamatches as $uastring){
if(preg_match("/".$uastring."/i",$_SERVER["HTTP_USER_AGENT"])) return true;
}

}
return false;
} 
?>

Last edited by Doctor Feelgood; 06-03-2010 at 07:25 PM..
Doctor Feelgood is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 06-03-2010, 07:45 PM   #4
kristin
GOO!
 
Industry Role:
Join Date: Sep 2002
Location: Back Home : )
Posts: 9,768
Sign into your topbucks account then the mobile program under sales tools ... Mobile redirection script fir webmasters in php, java or htaccess.


I would post the actual script but I'm on my phone posting.

Last edited by kristin; 06-03-2010 at 07:46 PM..
kristin is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 06-03-2010, 07:47 PM   #5
$5 submissions
I help you SUCCEED
 
$5 submissions's Avatar
 
Industry Role:
Join Date: Nov 2003
Location: The Pearl of the Orient Seas
Posts: 32,195
Any additional feedback on this? Piqued my curiosity
$5 submissions is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 06-03-2010, 08:05 PM   #6
svzcom
Confirmed User
 
svzcom's Avatar
 
Industry Role:
Join Date: Jun 2007
Posts: 4,654
Here´s an exemple in php:


Code:
<?php
if(strstr($_SERVER['HTTP_USER_AGENT'],'Android') ||
   strstr($_SERVER['HTTP_USER_AGENT'],'webOS') ||
   strstr($_SERVER['HTTP_USER_AGENT'],'iPhone') ||
   strstr($_SERVER['HTTP_USER_AGENT'],'iPod')) {
  header('Location: http://www.google.com');
  exit;
}
?>

and one in javascript:


Code:
var uagent = navigator.userAgent.toLowerCase();
 if(uagent.indexOf('android') ||
    uagent.indexOf('webos') ||
    uagent.indexOf('iphone') ||
    uagent.indexOf('ipod')){
    document.location = 'http://www.google.com';
}
Hope this can help you
svzcom is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 06-03-2010, 08:14 PM   #7
fatfoo
ICQ:649699063
 
Industry Role:
Join Date: Mar 2003
Posts: 27,763
Search on Google for the scripts you need.
__________________
Send me an email: [email protected]
fatfoo is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 06-03-2010, 08:17 PM   #8
epitome
So Fucking Lame
 
epitome's Avatar
 
Industry Role:
Join Date: Jun 2009
Location: St. Petersburg, FL
Posts: 12,156
Quote:
Originally Posted by kristin View Post
Sign into your topbucks account then the mobile program under sales tools ... Mobile redirection script fir webmasters in php, java or htaccess.


I would post the actual script but I'm on my phone posting.
Since she can't, I will.

Code:
<!--JAVASCRIPT MOBILE SITE REDIRECTION CODE-->
<script type="text/javascript">
MOBILE_URL = "http://redirecturlhere.com";

// Do not edit below
var WORDS = ["mobile", "htc", "blackberry", "j2me", "webos", "windows ce", "android", "nokia", "samsung", "LG", "palm", "PSP"];
var WLEN = WORDS.length;
for (var i = 0; i < WLEN; i++)
{
	var re = new RegExp(WORDS[i], "i");
	if (re.exec(navigator.userAgent))
	{	
		window.location = MOBILE_URL;
		break;
	}
}
</script>
Put that in your header...
epitome is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 06-03-2010, 08:44 PM   #9
kristin
GOO!
 
Industry Role:
Join Date: Sep 2002
Location: Back Home : )
Posts: 9,768
Quote:
Originally Posted by epitome View Post
Since she can't, I will.

Code:
<!--JAVASCRIPT MOBILE SITE REDIRECTION CODE-->
<script type="text/javascript">
MOBILE_URL = "http://redirecturlhere.com";

// Do not edit below
var WORDS = ["mobile", "htc", "blackberry", "j2me", "webos", "windows ce", "android", "nokia", "samsung", "LG", "palm", "PSP"];
var WLEN = WORDS.length;
for (var i = 0; i < WLEN; i++)
{
	var re = new RegExp(WORDS[i], "i");
	if (re.exec(navigator.userAgent))
	{	
		window.location = MOBILE_URL;
		break;
	}
}
</script>
Put that in your header...
Thank you, thank you.

htaccess:

#HTACCESS MOBILE SITE REDIRECTION CODE
RewriteEngine On
RewriteCond %{HTTP_USER_AGENT} (mobile|blackberry|webos|android|j2me|palm|nokia|s amsung|symbian|windows.ce) [NC]
RewriteRule ^(.*)$ http://www.allgirlmobile.com/?revid=25336 [R=302,L]

PHP:

<?php
$REGULAR_URL = ''; // http://www.evilgeniuscash.com/YOURHOMEPAGE.HTML
$MOBILE_URL = 'http://www.allgirlmobile.com/?revid=25336';

// Do not edit below
$WORDS = array('mobile', 'htc', 'blackberry', 'j2me', 'webos', 'windows ce', 'android', 'nokia', 'samsung', 'LG', 'palm', 'PSP');
$is_mobile = FALSE;
foreach ($WORDS as $w)
{
if (isset($_SERVER['HTTP_USER_AGENT'])
&& strpos(strtolower($_SERVER['HTTP_USER_AGENT']), $w) !== false)
{
$is_mobile = TRUE;
break;
}
}
$url = ($is_mobile) ? $MOBILE_URL : $REGULAR_URL;
if (!empty($url))
{
header('Location: ' . $url);
}
?>
__________________
Vacares rules.

"Usually only fat guys have the kind of knowledge and ability that Kristin has."
kristin is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 06-03-2010, 09:59 PM   #10
Doctor Feelgood
Confirmed User
 
Doctor Feelgood's Avatar
 
Industry Role:
Join Date: Nov 2005
Location: RI
Posts: 2,112
sweet! thanks
Doctor Feelgood is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 06-03-2010, 10:19 PM   #11
bigalownz
Confirmed User
 
bigalownz's Avatar
 
Industry Role:
Join Date: Aug 2005
Location: NEW ZEALAND
Posts: 1,654
this is what i use

#iphone ipod detection
RewriteCond %{HTTP_USER_AGENT} ^.*iphone.*$ [NC]
RewriteRule ^(.*)$ http://namobile.naughtyamerica.com/t...jU0NDoyNTo0MA/ [R=301,L]

#Ipod detection
RewriteCond %{HTTP_USER_AGENT} ^.*ipod.*$ [NC]
RewriteRule ^(.*)$ http://namobile.naughtyamerica.com/t...jU0NDoyNTo0MA/ [R=301,L]

#android detection
RewriteCond %{HTTP_USER_AGENT} ^.*android.*$ [NC]
RewriteRule ^(.*)$ http://namobile.naughtyamerica.com/t...jU0NDoyNTo0MA/ [R=301,L]

#opera mini detection
RewriteCond %{HTTP_USER_AGENT} ^.*opera.mini.*$ [NC]
RewriteRule ^(.*)$ http://namobile.naughtyamerica.com/t...jU0NDoyNTo0MA/ [R=301,L]

#blackberry detection
RewriteCond %{HTTP_USER_AGENT} ^.*blackberry.*$ [NC]
RewriteRule ^(.*)$ http://namobile.naughtyamerica.com/t...jU0NDoyNTo0MA/ [R=301,L]

#palm detection
RewriteCond %{HTTP_USER_AGENT} ^.*up\.browser|up\.link|mmp|symbian|smartphone|mid p|wap|vodafone|psp|pocket|kindle|mobile|treo.*$ [NC]
RewriteRule ^(.*)$ http://namobile.naughtyamerica.com/t...jU0NDoyNTo0MA/ [R=301,L]

#nokia detection
RewriteCond %{HTTP_USER_AGENT} ^.*nokia.*$ [NC]
RewriteRule ^(.*)$ http://namobile.naughtyamerica.com/t...jU0NDoyNTo0MA/ [R=301,L]

#Samsung detection
RewriteCond %{HTTP_USER_AGENT} ^.*sgh.*$ [NC]
RewriteRule ^(.*)$ http://namobile.naughtyamerica.com/t...jU0NDoyNTo0MA/ [R=301,L]

#Sony Ericsson detection
RewriteCond %{HTTP_USER_AGENT} ^.*sonyericsson.*$ [NC]
RewriteRule ^(.*)$ http://namobile.naughtyamerica.com/t...jU0NDoyNTo0MA/ [R=301,L]

#Playstation Portable detection
RewriteCond %{HTTP_USER_AGENT} ^.*psp.*$ [NC]
RewriteRule ^(.*)$ http://namobile.naughtyamerica.com/t...jU0NDoyNTo0MA/ [R=301,L]

#Motorolla detection
RewriteCond %{HTTP_USER_AGENT} ^.*mot.*$ [NC]
RewriteRule ^(.*)$ http://namobile.naughtyamerica.com/t...jU0NDoyNTo0MA/ [R=301,L]

#HTC detection
RewriteCond %{HTTP_USER_AGENT} ^.*htc.*$ [NC]
RewriteRule ^(.*)$ http://namobile.naughtyamerica.com/t...jU0NDoyNTo0MA/ [R=301,L]

#LG detection
RewriteCond %{HTTP_USER_AGENT} ^.*lg.*$ [NC]
RewriteRule ^(.*)$ http://namobile.naughtyamerica.com/t...jU0NDoyNTo0MA/ [R=301,L]

#iPAQ detection
RewriteCond %{HTTP_USER_AGENT} ^.*lg.*$ [NC]
RewriteRule ^(.*)$ http://namobile.naughtyamerica.com/t...jU0NDoyNTo0MA/ [R=301,L]

#Nokia detection
RewriteCond %{HTTP_USER_AGENT} ^.*nokia.*$ [NC]
RewriteRule ^(.*)$ http://namobile.naughtyamerica.com/t...jU0NDoyNTo0MA/ [R=301,L]

#mobiles detection
RewriteEngine On
RewriteCond %{HTTP_ACCEPT} "text/vnd.wap.wml|application/vnd.wap.xhtml+xml" [NC,OR]
RewriteCond %{HTTP_USER_AGENT} "sony|symbian|nokia|samsung|mobile|windows ce|epoc|opera" [NC,OR]
RewriteCond %{HTTP_USER_AGENT} “mini|nitro|j2me|midp-|cldc-|netfront|mot|up.browser|up.link|audiovox”[NC,OR]
RewriteCond %{HTTP_USER_AGENT} “blackberry|ericsson,|panasonic|philips|sanyo|shar p|sie-”[NC,OR]
RewriteCond %{HTTP_USER_AGENT} “portalmmm|blazer|avantgo|danger|palm|series60|pal msource|pocketpc”[NC,OR]
RewriteCond %{HTTP_USER_AGENT} "acs|alav|alca|amoi|audi|aste|avan|benq|bird|blac| blaz|brew|cell|cldc|cmd-" [NC,OR]
RewriteCond %{HTTP_USER_AGENT} "dang|doco|eric|hipt|inno|ipaq|java|jigs|kddi|keji |leno|lg-c|lg-d|lg-g|lge-" [NC,OR]
RewriteCond %{HTTP_USER_AGENT} "maui|maxo|midp|mits|mmef|mobi|mot-|moto|mwbp|nec-|newt|noki|opwv" [NC,OR]
RewriteCond %{HTTP_USER_AGENT} "palm|pana|pant|pdxg|phil|play|pluc|port|prox|qtek |qwap|sage|sams|sany" [NC,OR]
RewriteCond %{HTTP_USER_AGENT} "sch-|sec-|send|seri|sgh-|shar|sie-|siem|smal|smar|sony|sph-|symb|t-mo" [NC,OR]
RewriteCond %{HTTP_USER_AGENT} "teli|tim-|tosh|tsm-|upg1|upsi|vk-v|voda|w3cs|wap-|wapa|wapi" [NC,OR]
RewriteCond %{HTTP_USER_AGENT} "wapp|wapr|webc|winw|winw|xda|xda-" [NC,OR]
RewriteCond %{HTTP_USER_AGENT} "up.browser|up.link|windowssce|iemobile|mini|m mp" [NC,OR]
RewriteCond %{HTTP_USER_AGENT} "symbian|midp|wap|phone|pocket|mobile|pda|psp" [NC,OR]
RewriteCond %{HTTP_USER_AGENT} “smartphone|rover|ipaq|au-mic,|alcatel|ericy|vodafone/|wap1.|wap2.|iPhone|android”[NC]
RewriteRule ^(.*)$ http://namobile.naughtyamerica.com/t...jU0NDoyNTo0MA/ [R=301,L]
__________________
$100 free credit for all hosting needs
bigalownz is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 06-03-2010, 10:23 PM   #12
mmcfadden
So Fucking Banned
 
Join Date: Oct 2008
Location: philly
Posts: 5,099
just dropping my line
mmcfadden is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 06-03-2010, 10:47 PM   #13
craftyc
Confirmed User
 
craftyc's Avatar
 
Industry Role:
Join Date: Mar 2009
Location: under your skin
Posts: 162
if you have mostly search engine traffic, be a little careful. Google can look down on these sorts of things. I redirected a few mobile hits from one of my blogs that was doing well and got punished severely by that illustrious SE.
craftyc is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 06-03-2010, 10:52 PM   #14
kristin
GOO!
 
Industry Role:
Join Date: Sep 2002
Location: Back Home : )
Posts: 9,768
Quote:
Originally Posted by craftyc View Post
if you have mostly search engine traffic, be a little careful. Google can look down on these sorts of things. I redirected a few mobile hits from one of my blogs that was doing well and got punished severely by that illustrious SE.
How were you re-directing it? Did you subdomain it?
__________________
Vacares rules.

"Usually only fat guys have the kind of knowledge and ability that Kristin has."
kristin is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 06-03-2010, 10:55 PM   #15
Jack Sparrow
Almost goners..
 
Industry Role:
Join Date: May 2008
Location: Netherlands
Posts: 11,420
Quote:
Originally Posted by mmcfadden View Post
just dropping my line
Which isnt allowed anymore but anyways..

To get back to topic.

If you need the best redirect script hit me up and i will email it to you.

Whatever you do, use a htaccess redirect code, its the safest way to make sure google dont fucks up your rankings. Php code is really "not done".
Jack Sparrow is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 06-03-2010, 11:01 PM   #16
Bird
Confirmed User
 
Bird's Avatar
 
Join Date: Jan 2005
Location: Stockton
Posts: 4,365
I have these scripts, I teach this at a community college.

Download WURFL

Watch my Video

http://mmi.mobiquio.com/resources/wu...all%281%29.htm

All information you need is here:

http://mmi.mobiquio.com/resources/
__________________
ICQ:268731675
Bird is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 06-03-2010, 11:03 PM   #17
charlie g
Confirmed User
 
charlie g's Avatar
 
Industry Role:
Join Date: Aug 2006
Location: Center of the Universe
Posts: 2,758
Quote:
Originally Posted by craftyc View Post
if you have mostly search engine traffic, be a little careful. Google can look down on these sorts of things. I redirected a few mobile hits from one of my blogs that was doing well and got punished severely by that illustrious SE.
This is true.
__________________
AlanAgus1 at gmail dot com
-------------------------------
charlie g is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 06-03-2010, 11:03 PM   #18
Bird
Confirmed User
 
Bird's Avatar
 
Join Date: Jan 2005
Location: Stockton
Posts: 4,365
Hawhaw is a Kick Ass script for beginners..

http://hawhaw.de/
__________________
ICQ:268731675
Bird is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 06-03-2010, 11:07 PM   #19
mmcfadden
So Fucking Banned
 
Join Date: Oct 2008
Location: philly
Posts: 5,099
Quote:
Originally Posted by mrfrisky View Post
Which isnt allowed anymore but anyways..

To get back to topic.

If you need the best redirect script hit me up and i will email it to you.

Whatever you do, use a htaccess redirect code, its the safest way to make sure google dont fucks up your rankings. Php code is really "not done".
I posted so I could come back to this thread... bookmarked type of thing.

Damn man... go fucking steal some shit or something
mmcfadden is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 06-04-2010, 12:07 AM   #20
charlie g
Confirmed User
 
charlie g's Avatar
 
Industry Role:
Join Date: Aug 2006
Location: Center of the Universe
Posts: 2,758
Thanks

Quote:
Originally Posted by Bird View Post
Hawhaw is a Kick Ass script for beginners..

http://hawhaw.de/
Thanks Bird....some useful information does crop up here from time to time.
__________________
AlanAgus1 at gmail dot com
-------------------------------
charlie g 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.