Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

Website and Server Administration Forum


You are currently viewing our Website and Server Administration Forum as a guest. Please register to participate.
Login



Reply
how to ban countries?
Old 06-10-2008, 06:12 PM Question how to ban countries?
Skilled Talker

Posts: 96
Name: tanicos
Trades: 0
Hello

is there a way to ban specific countries? i've seen some websites doing this.
thanks
__________________

Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE
tanicos is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 06-11-2008, 02:11 AM Re: how to ban countries?
Arenlor's Avatar
Ultra Talker

Posts: 462
Name: Jerod Lycett
Location: /home/arenlor
Trades: 0
First you get a list of IPs for the country that you for whatever reason wish to ban, http://www.phptutorial.info/iptocountry/the_script.html you should be able to use their script's IP file. Then add the following type of line to your .htaccess or apache server config file:
Code:
Deny from 256.256.256.256
__________________
PHP Code:
<?php echo "Hello World"?>
HTML Code:
<html><head><title>Hello World</title></head><body><p>Hello World</p></body></html>
Arenlor is offline
Reply With Quote
View Public Profile Visit Arenlor's homepage!
 
Reply     « Reply to how to ban countries?
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.15841 seconds with 12 queries