Ravens PHP Scripts: Forums
 

 

View next topic
View previous topic
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> Security - Other
Author Message
dcasmr
Worker
Worker



Joined: Feb 06, 2004
Posts: 147

PostPosted: Thu Mar 02, 2006 6:45 pm Reply with quote

This is for a site that does not use PHPNUKE, but just PHP and with a database. We are looking for a solution to block an entire country using the IP address.

Thanks,
dcasmr
 
View user's profile Send private message
Raven
Site Admin/Owner



Joined: Aug 27, 2002
Posts: 17088

PostPosted: Thu Mar 02, 2006 11:03 pm Reply with quote

Does it use Apache? If so, the code is the same in .htaccess. You can block by IP and/or domain name. For instance, to block all of Turkey, by domains that use the .tr as the tld, just add deny from .tr . To block by ranges, you will need to calculate the CIDR and enter each range in, if there is more than one. For instance, if country abc had an IP range of 4.43.114.8 - 4.43.114.15, you would enter deny from 4.43.114.8/29
 
View user's profile Send private message
Display posts from previous:       
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> Security - Other

View next topic
View previous topic
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum


Powered by phpBB © 2001-2007 phpBB Group
All times are GMT - 6 Hours
 
Forums ©