|
|
|
||||
|
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 |
|
Confirmed User
Industry Role:
Join Date: Aug 2006
Location: Midwest
Posts: 3,809
|
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 ;) ![]() |
|
|
|
|
|
#2 |
|
Registered User
Industry Role:
Join Date: May 2009
Location: Orange County, CA
Posts: 94
|
But she's telling me not to say anything!
|
|
|
|
|
|
#3 |
|
Confirmed User
Industry Role:
Join Date: Aug 2006
Location: Midwest
Posts: 3,809
|
|
|
|
|
|
|
#4 |
|
♥♥♥ Likes Hugs ♥♥♥
Industry Role:
Join Date: Nov 2001
Location: /home
Posts: 15,841
|
__________________
I like pie. |
|
|
|
|
|
#5 |
|
Too lazy to set a custom title
Industry Role:
Join Date: Aug 2002
Posts: 55,372
|
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]
__________________
Since 1999: 69 Adult Industry awards for Best Hosting Company and professional excellence. ![]() WP Stuff |
|
|
|
|
|
#6 | |
|
Confirmed User
Industry Role:
Join Date: Aug 2006
Location: Midwest
Posts: 3,809
|
Quote:
|
|
|
|
|
|
|
#7 |
|
Confirmed User
Join Date: May 2004
Posts: 506
|
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>
|
|
|
|