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)
-   -   htaccess block (https://gfy.com/showthread.php?t=699988)

Andrew12345 01-27-2007 04:47 AM

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

fris 01-27-2007 04:59 AM

www.htaccesstools.com

Andrew12345 01-27-2007 05:14 AM

Thanks, just what I was looking for :)

Lycanthrope 01-27-2007 06:46 AM

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)

Andrew12345 01-27-2007 08:44 AM

okay, will look into that also.... is there a very easy way to block all american surfers?

fris 01-27-2007 08:45 AM

mod geoip is a good apache add on


All times are GMT -7. The time now is 09:00 PM.

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