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 07-27-2002, 03:19 PM   #1
Naughty
Confirmed User
 
Industry Role:
Join Date: Jul 2001
Location: Utopia
Posts: 6,483
Redirecting surfers language based serverside, how to ...

Does anybody wanna share how we could best get a script that redirects visitors serverside so we can spare the serverload by using php scripts in the header?
__________________
seks.ai for sale - ping me
Naughty is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 07-27-2002, 03:33 PM   #2
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 Naughty
Does anybody wanna share how we could best get a script that redirects visitors serverside so we can spare the serverload by using php scripts in the header?
Ok... WinXX doesn't support PHP, so what's the problem
with language redirects? That's the default install of
Apache.

Perhaps if you describe your problem in more detail.
some_idiot is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 07-27-2002, 03:42 PM   #3
Pipecrew
Master of Gfy.com
 
Pipecrew's Avatar
 
Industry Role:
Join Date: Feb 2002
Posts: 14,887
Quote:
Originally posted by some_idiot


Ok... WinXX doesn't support PHP, so what's the problem
with language redirects? That's the default install of
Apache.

Perhaps if you describe your problem in more detail.

they want a script that detects the persons country and sends them to an apropriate page i think
Pipecrew is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 07-27-2002, 04:08 PM   #4
Naughty
Confirmed User
 
Industry Role:
Join Date: Jul 2001
Location: Utopia
Posts: 6,483
Quote:
Originally posted by Pipecrew



they want a script that detects the persons country and sends them to an apropriate page i think
Exactly!

But instead of using a script (php/perl), we want it to be taken care of before they even hit a page, so we can send it to a paysite straight away.
Naughty is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 07-27-2002, 04:14 PM   #5
foe
Confirmed User
 
Join Date: May 2002
Location: CT
Posts: 5,246
Quote:
Originally posted by some_idiot


Ok... WinXX doesn't support PHP, so what's the problem
with language redirects? That's the default install of
Apache.

Perhaps if you describe your problem in more detail.
php runs on windows + IIS and windows + apache..... Im running php in xp now
foe is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 07-27-2002, 04:20 PM   #6
sexyclicks
Confirmed User
 
sexyclicks's Avatar
 
Industry Role:
Join Date: Mar 2002
Location: c9media.com
Posts: 3,240
There is a script that will redirect based on the Language Version of Windows.
I can try to find it if you are interested for that...
sexyclicks is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 07-27-2002, 04:36 PM   #7
Naughty
Confirmed User
 
Industry Role:
Join Date: Jul 2001
Location: Utopia
Posts: 6,483
Quote:
Originally posted by sexyclicks
There is a script that will redirect based on the Language Version of Windows.
I can try to find it if you are interested for that...
If it is serverside, all is good
I mean, if it is not too much trouble, I'd love to have it. All is better than nothing.

Last edited by Naughty; 07-27-2002 at 04:37 PM..
Naughty is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 07-27-2002, 05:18 PM   #8
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 Pipecrew



they want a script that detects the persons country and sends them to an apropriate page i think
Country or Language?


From a fresh Apache install the default data directory;

apache_pb.gif index.html.it index.html.ru.cp866
index.html.ca index.html.ja.jis index.html.ru.iso-ru
index.html.cz index.html.kr.iso-kr index.html.ru.koi8-r
index.html.de index.html.lu index.html.ru.ucs2
index.html.dk index.html.nl index.html.ru.ucs4
index.html.ee index.html.nn index.html.ru.utf8
index.html.el index.html.no index.html.se
index.html.en index.html.po.iso-pl index.html.zh.Big5
index.html.es index.html.pt webmagick
index.html.fr index.html.pt-br
index.html.he.iso8859-8 index.html.ru.cp-1251


Now these correspond to the "magic" in the mime
file for browser IDs.

As in;

200 36426 "-" "Mozilla/4.79 [en] (Win98; U)

------------------------------------^^^

Asks for the "EN"glish page, index.html.en


... if you want something that redirects for an ISO
country code, ANY domain based script and the ISO
chart and some typing will get ya what you want.
some_idiot is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 07-28-2002, 03:46 AM   #9
Naughty
Confirmed User
 
Industry Role:
Join Date: Jul 2001
Location: Utopia
Posts: 6,483
Thanks Idiot

Would this also work if we were to setup a link to another URL, with h ttp:// ... instead of a html page on our server? Like this:

Quote:
apache_pb.gif index.html.it index.html.ru.cp866
index.html.jp index.html.ja.jis http://sponsor.com
or should it be:
Quote:
apache_pb.gif index.html.it index.html.ru.cp866
http://sponsor.com index.html.jp index.html.ja.jis
Thanks again.

Last edited by Naughty; 07-28-2002 at 03:55 AM..
Naughty is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 07-28-2002, 04:56 AM   #10
Brujah
Beer Money Baron
 
Brujah's Avatar
 
Industry Role:
Join Date: Jan 2001
Location: brujah / gmail
Posts: 22,157
You might try a simple .htaccess file ?
http://www.askmrporn.com/wmh/wwwboar...ges/26285.html
__________________
Brujah is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 07-28-2002, 05:11 AM   #11
Chris R
Confirmed User
 
Join Date: May 2001
Location: Baltimore, MD USA
Posts: 1,151
I was always told you couldn't use the language accept thingy in .htaccess, but I never tried it...
Chris R is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 07-28-2002, 06:32 AM   #12
hyper
Confirmed User
 
Join Date: Mar 2002
Location: Mass Ass
Posts: 5,294
okay i figured it out

add this to your .htaccess

LanguagePriority en

ErrorDocument 406 http://www.whatever.com


then rename your pages with .en after it
index.html.en
index.php.en
whatever you have add a .en to the end

if they dont use english language they get redirected
__________________
hyper is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 07-28-2002, 06:53 AM   #13
richard
Confirmed User
 
Join Date: Feb 2001
Location: UK
Posts: 543
<spam>

We're about 2 weeks away from launching a piece of software that runs server side, that can be setup to redirect on browser language, IP country lookup, or a combo of both.

Coded in C, so we should have some tasty performance figures.

Can redirect the surfer to an internal/external page, or show images/html transparently based on country/language/both.

</spam>

hit me up on [email protected] if it sounds of interest to you.
richard is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 07-28-2002, 06:55 AM   #14
hyper
Confirmed User
 
Join Date: Mar 2002
Location: Mass Ass
Posts: 5,294
yeah but you will sell it..

i just gave it for free
__________________
hyper is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 07-28-2002, 06:55 AM   #15
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 hyper
okay i figured it out

add this to your .htaccess

LanguagePriority en

ErrorDocument 406 http://www.whatever.com


then rename your pages with .en after it
index.html.en
index.php.en
whatever you have add a .en to the end

if they dont use english language they get redirected
Right, and if you lack the LanuagePriority and have the
"mime magic" setup then you can redirect to any
language that you have the .XX extention to.

After all your languages are checked the default
fallback is your index.html

Hyper: That was a fresh directory dump, not the
contents of a file. Sorry the unix line feeds didn't
come through in the message.
some_idiot is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 07-28-2002, 07:14 AM   #16
hyper
Confirmed User
 
Join Date: Mar 2002
Location: Mass Ass
Posts: 5,294
Quote:
Originally posted by some_idiot


Right, and if you lack the LanuagePriority and have the
"mime magic" setup then you can redirect to any
language that you have the .XX extention to.

After all your languages are checked the default
fallback is your index.html

Hyper: That was a fresh directory dump, not the
contents of a file. Sorry the unix line feeds didn't
come through in the message.
well you know more about it then i do..

i just figured if you add those lines to your htaccess
and rename all your files to end in .en
if its not an english browser it wont find anything else.. and thus redirect.

but yeah i saw that language priority must be setup in the server config
i had to see if i had that installed
if the loaded server modules have : mod_negotiation
then it 99% is set
__________________

Last edited by hyper; 07-28-2002 at 07:30 AM..
hyper is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 07-28-2002, 07:32 AM   #17
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 hyper

well you know more about it then i do..

i just figured if you add those lines to your htaccess
and rename all your files to end in .en
if its not an english browser it wont find anything else.. and thus redirect.

but yeah i saw that language priority must be setup in the server config
i had to see if i had that installed
if the loaded server modules have : mod_negotiation
then it 99% is set

If you want to take it offline, I'll see what I can do
about giving you a hand with your actual config files.
Hit me up at [email protected]
some_idiot is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 07-28-2002, 07:43 AM   #18
hyper
Confirmed User
 
Join Date: Mar 2002
Location: Mass Ass
Posts: 5,294
i'm all set i got it to work that way.

but i appreciate the offer.

i was trying to explain to the original poster how i got it to work.

besides youarelazy.com

also alot of people are on virtual and they dont have access to the conf files.

so now they have 2 ways to do it
__________________

Last edited by hyper; 07-28-2002 at 07:44 AM..
hyper is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 07-28-2002, 07:45 AM   #19
Naughty
Confirmed User
 
Industry Role:
Join Date: Jul 2001
Location: Utopia
Posts: 6,483
Quote:
Originally posted by hyper
i was trying to explain to the original poster how i got it to work.

besides youarelazy.com
You talkin' bout ME?
Naughty is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 07-28-2002, 07:46 AM   #20
hyper
Confirmed User
 
Join Date: Mar 2002
Location: Mass Ass
Posts: 5,294
lol
i found this list too if people need it

af Afrikaans
ar-ae Arabic(U.A.E.)
ar-bh Arabic(Bahrain)
ar-dz Arabic(Algeria)
ar-eg Arabic(Egypt)
ar-iq Arabic(Iraq)
ar-jo Arabic(Jordan)
ar-kw Arabic(Kuwait)
ar-lb Arabic(Lebanon)
ar-ly Arabic(Libya)
ar-ma Arabic(Morocco)
ar-om Arabic(Oman)
ar-qa Arabic(Qatar)
ar-sa Arabic(Saudi Arabia)
ar-sy Arabic(Syria)
ar-tn Arabic(Tunisia)
ar-ye Arabic(Yemen)
be Belarusian
bg Bulgarian
ca Catalan
cs Czech
da Danish
de German(Standard)
de-at German(Austrian)
de-ch German(Swiss)
de-li German(Liechtenstein)
de-lu German(Luxembourg)
el Greek
en English
en English(Caribbean)
en-au English(Australian)
en-bz English(Belize)
en-ca English(Canadian)
en-gb English(British)
en-ie English(Ireland)
en-jm English(Jamaica)
en-nz English(New Zealand)
en-tt English(Trinidad)
en-us English(United States)
en-za English(South Africa)
es Spanish(Spain - Modern Sort)
es Spanish(Spain - Traditional Sort)
es-ar Spanish(Argentina)
es-bo Spanish(Bolivia)
es-cl Spanish(Chile)
es-co Spanish(Colombia)
es-cr Spanish(Costa Rica)
es-do Spanish(Dominican Republic)
es-ec Spanish(Ecuador)
es-gt Spanish(Guatemala)
es-hn Spanish(Honduras)
es-mx Spanish(Mexican)
es-ni Spanish(Nicaragua)
es-pa Spanish(Panama)
es-pe Spanish(Peru)
es-pr Spanish(Puerto Rico)
es-py Spanish(Paraguay)
es-sv Spanish(El Salvador)
es-uy Spanish(Uruguay)
es-ve Spanish(Venezuela)
et Estonian
eu Basque
fa Farsi
fi Finnish
fo Faeroese
fr French(Standard)
fr-be French(Belgian)
fr-ca French(Canadian)
fr-ch French(Swiss)
fr-lu French(Luxembourg)
gd Gaelic(Scots)
gd-ie Gaelic(Irish)
he Hebrew
hi Hindi
hr Croatian
hu Hungarian
in Indonesian
is Icelandic
it Italian(Standard)
it-ch Italian(Swiss)
ja Japanese
ji Yiddish
ko Korean
ko Korean(Johab)
lt Lithuanian
lv Latvian
mk Macedonian
ms Malaysian
mt Maltese
nl Dutch(Standard)
nl-be Dutch(Belgian)
no Norwegian(Bokmal)
no Norwegian(Nynorsk)
pl Polish
pt Portuguese(Standard)
pt-br Portuguese(Brazilian)
rm Rhaeto-Romanic
ro Romanian
ro-mo Romanian(Moldavia)
ru Russian
ru-mo Russian(Moldavia)
sb Sorbian
sk Slovak
sl Slovenian
sq Albanian
sr Serbian(Cyrillic)
sr Serbian(Latin)
sv Swedish
sv-fi Swedish(Finland)
sx Sutu
sz Sami(Lappish)
th Thai
tn Tswana
tr Turkish
ts Tsonga
uk Ukrainian
ur Urdu
ve Venda
vi Vietnamese
xh Xhosa
zh-cn Chinese(PRC)
zh-hk Chinese(Hong Kong)
zh-sg Chinese(Singapore)
zh-tw Chinese(Taiwan)
zu Zulu
__________________
hyper is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 07-28-2002, 11:59 AM   #21
richard
Confirmed User
 
Join Date: Feb 2001
Location: UK
Posts: 543

Quote:
yeah but you will sell it..
Of course

The code we write can be sold.

Its not an apache configuration, (though an apache module is one of the next things in the pipeline).

Its a standalone foreign traffic management program. Shows you historical stats about your foreign traffic (on language or IP/country), can serve dynamic content so your user doesn't see a change in filename, they just see a banner targetted to them, or html targetted to them, or redirect the visitor to certains sites.

It also can handle a nice heavy load (though to be honest we've not got to the stress testing phase, but we are looking at big numbers).

I guess its the next step up for people interested in tapping into the foreign market, it gives them more control of what foreign surfers view, and where they are sent.

depends what you want to do with your foreign traffic really.

Rich.
richard 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.