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)
-   -   mod geo IP question.. (https://gfy.com/showthread.php?t=930882)

trevesty 09-30-2009 07:56 PM

mod geo IP question..
 
so, I'm currently redirecting chinese traffic to passwordbyphone.. how do i do multiple countries?

turkey and other middle eastern countries to be precise. pakistan etc.

thanks.

pic for your help ;)

http://img1.browst.com/f/browst_-797-22-lg.jpg

cLin 09-30-2009 08:06 PM

But she's telling me not to say anything!

trevesty 09-30-2009 08:10 PM

Quote:

Originally Posted by cLin (Post 16376515)
But she's telling me not to say anything!

:1orglaugh:1orglaugh

I knew that pic would backfire after I posted it

Babaganoosh 09-30-2009 08:12 PM

http://translate.google.com/translat...-geoip-module/

That's the best info I can find.

fris 09-30-2009 08:24 PM

send all non billable countries to passwordbyphone

Code:

RewriteEngine on
RewriteCond %{HTTP:Accept-Language} (aa|ab|af|am|ar|as|ay|az|ba|be|bh|bi|bn|bo|br|ca|co|dz|fa|gn|gu|ha|hi|kk|km|ku|ky|lo|lt|lv|mg|mi|mk|ml|mn|mo|mr|ms|mt|my|na|ne|oc|om|or|pa|qu|rn|ru|rw|sa|sd|sg|si|sn|so|ss|st|su|sw|ta|te|tg|th|ti|tk|tl|tn|to|tr|ts|tt|tw|uk|ur|uz|vi|vo|wo|xh|yo|zh|zu) [NC]
RewriteRule .* http://www.pinaccesscode.com/?layout=general_straight&rid=AFFILID [R,L]


trevesty 09-30-2009 08:39 PM

Quote:

Originally Posted by Babaganoosh (Post 16376529)

thanks :thumbsup

Altheon 09-30-2009 10:05 PM

Here is what I put in my .htaccess

Code:

<IfModule mod_geoip.c>
# Russia
RewriteCond %{ENV:GEOIP_COUNTRY_CODE} ^RU$ [OR]
# United Arab Emirates
RewriteCond %{ENV:GEOIP_COUNTRY_CODE} ^AE$ [OR]
# China
RewriteCond %{ENV:GEOIP_COUNTRY_CODE} ^CN$ [OR]
# Saudi Arabia
RewriteCond %{ENV:GEOIP_COUNTRY_CODE} ^SA$ [OR]
# Turkey
RewriteCond %{ENV:GEOIP_COUNTRY_CODE} ^TR$ [OR]
#Egypt
RewriteCond %{ENV:GEOIP_COUNTRY_CODE} ^EG$ [OR]
#Pakistan
RewriteCond %{ENV:GEOIP_COUNTRY_CODE} ^PK$ [OR]
#my Malaysia
RewriteCond %{ENV:GEOIP_COUNTRY_CODE} ^MY$ [OR]
#Hungary
RewriteCond %{ENV:GEOIP_COUNTRY_CODE} ^HU$ [OR]
#Romania
RewriteCond %{ENV:GEOIP_COUNTRY_CODE} ^RO [OR]
#Taiwan
RewriteCond %{ENV:GEOIP_COUNTRY_CODE} ^TW [OR]
#Indonesia
RewriteCond %{ENV:GEOIP_COUNTRY_CODE} ^ID [OR]
#Philippines
RewriteCond %{ENV:GEOIP_COUNTRY_CODE} ^PH [OR]
#Colombia
RewriteCond %{ENV:GEOIP_COUNTRY_CODE} ^CO [OR]
#Argentina
RewriteCond %{ENV:GEOIP_COUNTRY_CODE} ^AR [OR]
#Thailand
#RewriteCond %{ENV:GEOIP_COUNTRY_CODE} ^TH [OR]
#Chile
RewriteCond %{ENV:GEOIP_COUNTRY_CODE} ^CL [OR]
#Ukraine
RewriteCond %{ENV:GEOIP_COUNTRY_CODE} ^UA$
RewriteRule ^(.*)$ http://YourRedirectURL.com [L]
</IfModule>



All times are GMT -7. The time now is 03:01 AM.

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