UnlimitedMB.comUnlimitedMB.com
Home    |    About Us    |    Forums    |    Signup    |    Login    |    Support
UnlimitedMB.com


 
UnlimitedMB.com




Go Back   UnlimitedMB.com Forums > General Forums > HTML

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 08-30-2006
azx azx is offline
Member
 
Join Date: Jun 2006
Posts: 85
Default Ban Ip country?

How do we ban ip country? and put it on index.html or index.php

Also disable people using proxy..
__________________
Come and See My New Anime & Arcade.
Anime Zone

http://img101.imageshack.us/img101/741/leroy1ca9jy.gif
Reply With Quote
  #2  
Old 08-30-2006
Tyler Tyler is offline
Administrator
 
Join Date: Jun 2006
Posts: 368
Default

You would have to do it in a script.
A simple way is to have a line on the top of each page that says includes another file and in the other file have it so it says if the ip address is equal to one in your ban list then either echo Error or something then break; which should stop the page from loading.
What you would want to do is get a list of IPs from the countries you want to ban and ban the whole subnet or the whole class C or B range. Like if your IP was 10.20.30.40 and the 10.20 is Ireland and you want to ban everyone from Ireland then you would take and grab the first 2 sets of numbers from the visitors IP and if they equal the numbers you have in your ban list then do the break thing and that is like a ban from your site.

I wouldn't really recommend banning people unless you have a good reason to. For us it is to prevent abuse from known countries that most hosts have problems with. You don't have to worry about server security or bandwidth really (with the huge amount you get) so there shouldn't be much of a reason for you to ban a country. (just my 2 cents)

Hope that makes sense and helps a little bit. To find out the exact functions php.net has a function search or Google it, I don't want to give you a wrong function and confuse you
__________________
Tyler,
Admin
Reply With Quote
  #3  
Old 08-30-2006
arenlor arenlor is offline
Senior Member
 
Join Date: Aug 2006
Location: Jaa, kore da.
Posts: 108
Send a message via ICQ to arenlor Send a message via AIM to arenlor Send a message via MSN to arenlor Send a message via Yahoo to arenlor
Default

yeah it can be done pretty easily in php, that's what I'd suggest using, and what country and why if I may ask, just curious.
Reply With Quote
  #4  
Old 08-30-2006
azx azx is offline
Member
 
Join Date: Jun 2006
Posts: 85
Default

Quote:
Originally Posted by arenlor
yeah it can be done pretty easily in php, that's what I'd suggest using, and what country and why if I may ask, just curious.

China -.- too many hacker in china Also i want to disable the proxy thing if they use proxy..
__________________
Come and See My New Anime & Arcade.
Anime Zone

http://img101.imageshack.us/img101/741/leroy1ca9jy.gif
Reply With Quote
  #5  
Old 08-30-2006
Tyler Tyler is offline
Administrator
 
Join Date: Jun 2006
Posts: 368
Default

We protect the server, so as long as you dont have insecure scripts hackers shouldnt matter to you.
__________________
Tyler,
Admin
Reply With Quote
  #6  
Old 08-30-2006
xbllizzdx xbllizzdx is offline
Member
 
Join Date: Jul 2006
Posts: 58
Default

Is this why my friend in austrailia(I know i spelled it wrong) can't register.
Reply With Quote
Reply

« Previous Thread | Next Thread »

Thread Tools Search this Thread
Show Printable Version Show Printable Version
Email this Page Email this Page
Search this Thread:

Advanced Search
Display Modes
Linear Mode Switch to Linear Mode
Hybrid Mode Hybrid Mode
Threaded Mode Switch to Threaded Mode

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

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT. The time now is 08:15 AM.


Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2006, Jelsoft Enterprises Ltd.









 



UnlimitedMB.com © 2006
Terms of Use | Report Abuse