To do so you need to find out the IP address assignments for the ISPs in Egypt and block the ranges, you cant just blanket block a whole country without some extra coding on your site to enable you to detect visitors country's and then deny them access based on that.
HandyBuddy 82, 213, and 62 address blocks are used throughtout the EU as allocated by RIPE.
Leo154, Here is a site that discusses it http://ip-to-country.webhosting.info/. Run around google a bit and you will find some examples and code but you will need to work on it. You will need to do it in something like PHP or ASP.
You can block access using htaccess so for example:
<Limit GET HEAD POST>
deny from ie-eg.com
deny from egyptnetwork.com
deny from quicknet.com.eg
deny from sedapnet.org.eg
deny from 194.79.112
deny from 62.193.64
deny from 62.193.65
deny from 62.193.66
allow from all
and so on with all of the ranges. As you see i also put in some domains.
You can see to build up a list of IP ranges and or domains for the whole of Egypt is going to be no small task. Note: You cant just go by domain as some of the clients do not have DNS records.
Your best off coding a solution or dropping your quest.
This is MAD. Why would you want to block an entire country, I mean your friends, just log the excessive spamming and block them IP's, I think it's stupid blocking whole country's, I mean if we did country's would start blocking USA etc lol. Mad.
Originally posted by 03bigMark03 This is MAD. Why would you want to block an entire country, I mean your friends, just log the excessive spamming and block them IP's, I think it's stupid blocking whole country's, I mean if we did country's would start blocking USA etc lol. Mad.
Ep, glad to see you come back and tidy up...did want to ask a one day favor, I want to enhance my resume , was hoping you could make me administrator for a day, if so, take me right off since I won't be here to do anything, and don't know the slightest about the board, but it would be nice putting "served administrator osnn", if can do, THANKS