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 03-19-2003, 12:00 AM   #1
BRISK
Too lazy to set a custom title
 
Join Date: Feb 2003
Posts: 12,240
Do you know alot about Apache? I need answer to a question

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.
BRISK is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 03-19-2003, 12:12 AM   #2
iroc409
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!
iroc409 is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 03-19-2003, 12:12 AM   #3
iroc409
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!
iroc409 is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 03-19-2003, 12:15 AM   #4
BRISK
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.
BRISK is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 03-19-2003, 12:16 AM   #5
kevinale
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

Last edited by kevinale; 03-19-2003 at 12:19 AM..
kevinale is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 03-19-2003, 12:28 AM   #6
BRISK
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.
BRISK is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 03-19-2003, 12:44 AM   #7
kad
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.
kad is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 03-19-2003, 12:50 AM   #8
kevinale
Confirmed User
 
Join Date: Dec 2002
Location: Austin, TX
Posts: 2,115
Quote:
Originally posted by BRISK
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?
You could use mod_rewrite and rewrite the .html to .php thus giving you the ability to use php.
__________________
1monkey0cup.com
kevinale is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 03-19-2003, 12:57 AM   #9
kevinale
Confirmed User
 
Join Date: Dec 2002
Location: Austin, TX
Posts: 2,115
Quote:
Originally posted by BRISK
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?

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
kevinale is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 03-19-2003, 12:57 AM   #10
kad
Confirmed User
 
Join Date: Feb 2003
Location: Brisbane, Australia
Posts: 735
Quote:
Originally posted by kevinale


You could use mod_rewrite and rewrite the .html to .php thus giving you the ability to use php.
Umm, why not just add .html to the AddType line in that case? Ie:

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.
kad is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 03-19-2003, 12:58 AM   #11
xerox
Confirmed User
 
Join Date: Feb 2003
Posts: 672
rtfm
xerox is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 03-19-2003, 12:59 AM   #12
Danielle
Confirmed User
 
Danielle's Avatar
 
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
Danielle is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 03-19-2003, 01:06 AM   #13
myneid
Confirmed User
 
myneid's Avatar
 
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
myneid is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 03-19-2003, 01:10 AM   #14
rossiya2
Confirmed User
 
Join Date: Nov 2002
Posts: 287
Quote:
Originally posted by myneid
hahahahahahahahahaha to redirect the page. so on the front html page you would put like hahahahahahahaha language=hahahahahahahahahaha
A secret it remains apparently.
rossiya2 is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 03-19-2003, 01:13 AM   #15
myneid
Confirmed User
 
myneid's Avatar
 
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
myneid is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 03-19-2003, 01:24 AM   #16
rossiya2
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
rossiya2 is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 03-19-2003, 01:38 AM   #17
BRISK
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.
BRISK is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 03-19-2003, 05:16 AM   #18
BRISK
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.
BRISK is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 03-19-2003, 06:36 AM   #19
sacX
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]
sacX is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 03-19-2003, 06:46 AM   #20
BRISK
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.
BRISK 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.