![]() |
![]() |
![]() |
||||
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. |
![]() ![]() |
|
Discuss what's fucking going on, and which programs are best and worst. One-time "program" announcements from "established" webmasters are allowed. |
|
Thread Tools |
![]() |
#1 |
Too lazy to set a custom title
Join Date: Feb 2003
Posts: 12,240
|
![]() I don't know much about Apache, but I'll describe what I'm trying to do.
I have a domain that gets traffic from search engines. Can I do something in Apache to re-direct visitors to another URL based on their country? I've been looking at this ---> www.maxmind.com , and it says it works with Apache using mod_geoip I don't want to use PHP, CGI or .htaccess. These visitors are visiting pure .html pages. These visitors are coming to my domain through lots of different .html pages, I want them to click on the link in the SE and if they're from certain countries that I choose, they will be redirected to a different URL Is this possible?
__________________
I post on GFY so that when people ask me what I do, I can tell them that I work with the mentally retarded. |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#2 |
Confirmed User
Join Date: Jan 2003
Location: midwest side, yo
Posts: 4,728
|
you can still use .htaccess to redirect html pages, without a password. same way with 404s and stuff. look up on google how to do that, there's all kinds of crazy stuff for that. you can even deny referring domains and such.
__________________
<a href="http://www.iroc409.com/"><img src="http://www.iroc409.com/adv/120x60.gif" border=0></a> icq: 1 7 6 4 2 0 9 6 0 Gallery templates for ONLY $25! w00t! |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#3 |
Confirmed User
Join Date: Jan 2003
Location: midwest side, yo
Posts: 4,728
|
i didn't mean referrers, although you might. you can deny ips and domains, so if a user works at microsoft, you can deny them access to your page.
__________________
<a href="http://www.iroc409.com/"><img src="http://www.iroc409.com/adv/120x60.gif" border=0></a> icq: 1 7 6 4 2 0 9 6 0 Gallery templates for ONLY $25! w00t! |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#4 |
Too lazy to set a custom title
Join Date: Feb 2003
Posts: 12,240
|
I don't want to use PHP, CGI or .htaccess
__________________
I post on GFY so that when people ask me what I do, I can tell them that I work with the mentally retarded. |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#5 |
Confirmed User
Join Date: Dec 2002
Location: Austin, TX
Posts: 2,115
|
I can help you but it is a PHP based hack. See sig. I know, "no php." is that steadfast?
__________________
1monkey0cup.com |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#6 |
Too lazy to set a custom title
Join Date: Feb 2003
Posts: 12,240
|
Surfers come to my pages from links like
http://www.mydomain.com/blah/page.html They are clicking on URLs from search engines that end in .html not php or cgi pages. Can Apache (using something like www.maxmind.com ) recognize the country they are from and redirect them to another URL?
__________________
I post on GFY so that when people ask me what I do, I can tell them that I work with the mentally retarded. |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#7 |
Confirmed User
Join Date: Feb 2003
Location: Brisbane, Australia
Posts: 735
|
Yes, I'm 99% sure you could, although, I've never done it.
You could install the GeoIP Apache Module, and set up a redirect based in the information it provides. I could look further into it for you if you dont get a better answer from anyone else. Feel free to hit me up on 173229403 or kad at fakeplasticrobot.com
__________________
lol internet. |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#8 | |
Confirmed User
Join Date: Dec 2002
Location: Austin, TX
Posts: 2,115
|
Quote:
__________________
1monkey0cup.com |
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#9 | |
Confirmed User
Join Date: Dec 2002
Location: Austin, TX
Posts: 2,115
|
Quote:
Or even better yet, you can make php parse html pages also with an AddType in the httpd.conf. And add the PHP into yout .html files.
__________________
1monkey0cup.com |
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#10 | |
Confirmed User
Join Date: Feb 2003
Location: Brisbane, Australia
Posts: 735
|
Quote:
AddType application/x-httpd-php .php .htm .html Anyhow, this doesn't solve his problem, as he doesn't want to use php.
__________________
lol internet. |
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#11 |
Confirmed User
Join Date: Feb 2003
Posts: 672
|
rtfm
![]() |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#12 |
Confirmed User
Join Date: Jun 2002
Location: My Coffin
Posts: 1,227
|
Add this line to your .htaccess file.
AddType application/x-httpd-php .html Then you can use a product like http://www.trafficassistant.com/ in .html files. Hugs, Danielle |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#13 |
Confirmed User
Industry Role:
Join Date: Jan 2003
Location: Los Angeles
Posts: 736
|
profit plantation sets it up in a cool way that may be applicable to you. if you used a php program that would check the country and if it should redirect it would print out the hahahahahahahahahaha to redirect the page. so on the front html page you would put like hahahahahahahaha language=hahahahahahahahahaha src=http://mydomain.com/countrylookup.php></hahahahahahahaha
and so if it was us it wouldnt do anything theres my secret solution of the day |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#14 | |
Confirmed User
Join Date: Nov 2002
Posts: 287
|
Quote:
|
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#15 |
Confirmed User
Industry Role:
Join Date: Jan 2003
Location: Los Angeles
Posts: 736
|
the hhahaha is
script language= java script with no spaces in the = and java and script |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#16 |
Confirmed User
Join Date: Nov 2002
Posts: 287
|
I had to support multiple languages and detect dialect preferences of the surfer. The Russian Apache server can do this without additional programming. I haven't tried the vanilla Apache for such situations. But it seems that the following variable's language setting can be used with a filesmatch directive using the httpd.conf file alone:
'HTTP_USER_AGENT' Contents of the User_Agent: header from the current request, if there is one. This is a string denoting the user agent being which is accessing the page. A typical example is: Mozilla/4.5 [en] (X11; U; Linux 2.2.9 i586). Among other things, you can use this value with get_browser() to tailor your page's output to the capabilities of the user agent. My chatbot is http://www.cologroup.net/html/chat/frame2.html |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#17 |
Too lazy to set a custom title
Join Date: Feb 2003
Posts: 12,240
|
Thanks for the replies. I'm gonna try that maxmind module and see if that works
__________________
I post on GFY so that when people ask me what I do, I can tell them that I work with the mentally retarded. |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#18 |
Too lazy to set a custom title
Join Date: Feb 2003
Posts: 12,240
|
Any other suggestions?
__________________
I post on GFY so that when people ask me what I do, I can tell them that I work with the mentally retarded. |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#19 |
Confirmed User
Join Date: Dec 2002
Location: New Zealand
Posts: 2,998
|
install mod_geoip..
then use mod_rewrite in httpd.conf for the domain you're interested in sort of like this RewriteEngine on RewriteCond %{GEOIP_COUNTRY_CODE} ^US$ RewriteRule ^/$ /newlocation.html [L] |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#20 |
Too lazy to set a custom title
Join Date: Feb 2003
Posts: 12,240
|
cool, thanks...I'm gonna try it out and see how it works
![]()
__________________
I post on GFY so that when people ask me what I do, I can tell them that I work with the mentally retarded. |
![]() |
![]() ![]() ![]() ![]() ![]() |