GoFuckYourself.com - Adult Webmaster Forum

GoFuckYourself.com - Adult Webmaster Forum (https://gfy.com/index.php)
-   Fucking Around & Business Discussion (https://gfy.com/forumdisplay.php?f=26)
-   -   Redirecting surfers language based serverside, how to ... (https://gfy.com/showthread.php?t=69647)

Naughty 07-27-2002 03:19 PM

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?

some_idiot 07-27-2002 03:33 PM

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.

Pipecrew 07-27-2002 03:42 PM

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

Naughty 07-27-2002 04:08 PM

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.

foe 07-27-2002 04:14 PM

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

sexyclicks 07-27-2002 04:20 PM

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

Naughty 07-27-2002 04:36 PM

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.

some_idiot 07-27-2002 05:18 PM

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.

Naughty 07-28-2002 03:46 AM

Thanks Idiot:winkwink:

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.

Brujah 07-28-2002 04:56 AM

You might try a simple .htaccess file ?
http://www.askmrporn.com/wmh/wwwboar...ges/26285.html

Chris R 07-28-2002 05:11 AM

I was always told you couldn't use the language accept thingy in .htaccess, but I never tried it...

hyper 07-28-2002 06:32 AM

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

richard 07-28-2002 06:53 AM

<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. :)

hyper 07-28-2002 06:55 AM

yeah but you will sell it..

i just gave it for free :)

some_idiot 07-28-2002 06:55 AM

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.

hyper 07-28-2002 07:14 AM

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

some_idiot 07-28-2002 07:32 AM

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]

hyper 07-28-2002 07:43 AM

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 :thumbsup

Naughty 07-28-2002 07:45 AM

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?:winkwink:

hyper 07-28-2002 07:46 AM

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

richard 07-28-2002 11:59 AM

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.


All times are GMT -7. The time now is 01:10 PM.

Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc123