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 01-27-2007, 04:47 AM   #1
Andrew12345
Registered User
 
Join Date: Jan 2007
Posts: 20
htaccess block

Hey

can you guys tell me how to block certain countries with htaccess?

and maybe a list of country codes, as I want to block the entire world, nearly except from all the coutries in europe

thanks
Andrew12345 is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 01-27-2007, 04:59 AM   #2
fris
Too lazy to set a custom title
 
fris's Avatar
 
Industry Role:
Join Date: Aug 2002
Posts: 55,426
www.htaccesstools.com
__________________
Since 1999: 69 Adult Industry awards for Best Hosting Company and professional excellence.


WP Stuff
fris is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 01-27-2007, 05:14 AM   #3
Andrew12345
Registered User
 
Join Date: Jan 2007
Posts: 20
Thanks, just what I was looking for
Andrew12345 is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 01-27-2007, 06:46 AM   #4
Lycanthrope
Confirmed User
 
Lycanthrope's Avatar
 
Industry Role:
Join Date: Jan 2004
Location: Wisconsin
Posts: 4,517
The link fris posted is a great tool, but to actually filter by country (and not simply language) you will require a database and some block / redirect rules.

Keep in mind that neither method is perfect, and if you are looking for something simple, language will suffice.

Anyhell, these two links should get you started if you want to play w/ geoip:
http://www.maxmind.com/app/geoip_country (free database / info)
http://www.maxmind.com/app/mod_geoip (apache api)
__________________
Lycanthrope is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 01-27-2007, 08:44 AM   #5
Andrew12345
Registered User
 
Join Date: Jan 2007
Posts: 20
okay, will look into that also.... is there a very easy way to block all american surfers?
Andrew12345 is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 01-27-2007, 08:45 AM   #6
fris
Too lazy to set a custom title
 
fris's Avatar
 
Industry Role:
Join Date: Aug 2002
Posts: 55,426
mod geoip is a good apache add on
__________________
Since 1999: 69 Adult Industry awards for Best Hosting Company and professional excellence.


WP Stuff
fris 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.