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)
-   -   Can someone post .htaccess info? (https://gfy.com/showthread.php?t=1025969)

TripleXPrint 06-09-2011 03:52 PM

Can someone post .htaccess info?
 
I want to block all countries except the U.S. and Canada. I have been searching for hours and cannot find the simple code to put into my .htaccess file to do this. Could someone please post the code I need to block the world other than the U.S. and Canada please? This is driving me insane.

If someone does this I'll do a favor in return...nothing sexual though, unless you're a hot chick.

TripleXPrint 06-09-2011 04:23 PM

Nevermind...figured it out.

bns666 06-09-2011 04:30 PM

share the knowledge :)

DVTimes 06-09-2011 04:33 PM

Why would you block the UK?

TripleXPrint 06-09-2011 04:42 PM

Quote:

Originally Posted by bns666 (Post 18205701)
share the knowledge :)

http://www.countryipblocks.net/

If you look on the right it gives you options to either block or allow. I chose allow and selected U.S. and Canada. It generated the text for me and I just pasted it into my .htaccess file. It was a rather large chunk of text and I'm sure there's a better way of doing it. But this will suffice until I figure out what I'm going to do with the site.

I'm not blocking UK after I get the site developed.

cooldude7 06-09-2011 08:45 PM

with geo mod installed on apache its just takes 2 minutes 2 block all countries.


All times are GMT -7. The time now is 05:38 PM.

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