بستن ای پی یک کشور خاص در CSF

با سلام خدمت کاربران محترم

در این مطلب آموزش بستن ای پی یک یا چند کشور خاص را به وسیله CSF توضیح خواهیم داد

بعد از ورود به SSH موارد زیر را انجام دهید :

nano /etc/csf/csf.conf

به دنبال CC_DENY  بگردید و کد کشور رو اضافه کنید. کد کشور ها رو میتونید از آدرس زیر بگیرید:

http://www.iana.org/domains/root/db

به طور مثال:

CC_DENY = “US,BR,CN”

این کدها کشور های آمریکا و برزیل و چین رو مسدود میکنه و افرادی که از این کشورها باشند قادر به مشاهده سرور شما نیستند

لیست برخی کشورها را برایتان آماده کردیم

AF Afghanistan (Democratic Republic of)
AL Albania (Republic of)
DZ Algeria (People's Democratic Republic of)
AS American Samoa
AD Andorra (Principality of)
AO Angola (People's Republic of)
AI Anguilla
AQ Antarctica
AG Antigua and Barbuda
AR Argentina (Argentine Republic)
AM Armenia
AW Aruba
AU Australia
AT Austria (Republic of)
AZ Azerbaijan
BS Bahamas (Commonwealth of the)
BH Bahrain (State of)
BD Bangladesh (People's Republic of)
BB Barbados
BY Belarus
BE Belgium (Kingdom of)
BZ Belize
BJ Benin (People's Republic of)
BM Bermuda
BT Bhutan (Kingdom of)
BO Bolivia (Republic of)
BA Bosnia-Hercegovina
BW Botswana (Republic of)
BV Bouvet Island
BR Brazil (Federative Republic of)
IO British Indian Ocean Territory
BN Brunei Darussalam
BG Bulgaria (Republic of)
BF Burkina Faso (formerly Upper Volta)
BI Burundi (Republic of)
KH Cambodia
CM Cameroon (Republic of)
CA Canada
CV Cape Verde (Republic of)
KY Cayman Islands
CF Central African Republic
TD Chad (Republic of)
CL Chile (Republic of)
CN China (People's Republic of)
CX Christmas Island (Indian Ocean)
CC Cocos (Keeling) Islands
CO Colombia (Republic of)
KM Comoros (Islamic Federal Republic of the)
CG Congo (Republic of the)
CK Cook Islands
CR Costa Rica (Republic of)
CI Cote d'Ivoire (Republic of)
HR Croatia
CU Cuba (Republic of)
CY Cyprus (Republic of)
CZ Czech Republic
DK Denmark (Kingdom of)
DJ Djibouti (Republic of)
DM Dominica (Commonwealth of)
DO Dominican Republic
TP East Timor
EC Ecuador (Republic of)
EG Egypt (Arab Republic of)
SV El Salvador (Republic of)
GQ Equatorial Guinea (Republic of)
EE Estonia (Republic of)
ET Ethiopia (People's Democratic Republic of)
FK Falkland Islands (Malvinas)
FO Faroe Islands
FJ Fiji (Republic of)
FI Finland (Republic of)
FR France (French Republic)
GF French Guiana
PF French Polynesia
TF French Southern Territories
GA Gabon (Gabonese Republic)
GM Gambia (Republic of the)
GE Georgia (Republic of)
DE Germany (Federal Republic of)
GH Ghana (Republic of )
GI Gibraltar
GR Greece (Hellenic Republic)
GL Greenland
GD Grenada
GP Guadeloupe (French Department of)
GU Guam
GT Guatemala (Republic of)
GN Guinea (Republic of)
GW Guinea-Bissau (Republic of)
GY Guyana (Republic of)
HT Haiti (Republic of)
HM Heard and McDonald Islands
HN Honduras (Republic of)
HK Hong Kong (Hisiangkang, Xianggang)
HU Hungary (Republic of)
IS Iceland (Republic of)
IN India (Republic of)
ID Indonesia (Republic of)
IR Iran (Islamic Republic of)
IQ Iraq (Republic of)
IE Ireland
IL Israel (State of)
IT Italy (Italian Republic)
JM Jamaica
JP Japan
JO Jordan (Hashemite Kingdom of)
KZ Kazakhstan
KE Kenya (Republic of)
KI Kiribati (Republic of)
KP Korea (Democratic People's Republic of)
KR Korea (Republic of )
KW Kuwait (State of)
KG Kyrgyzstan
LA Lao People's Democratic Republic
LV Latvia (Republic of)
LB Lebanon (Lebanese Republic)
LS Lesotho (Kingdom of)
LR Liberia (Republic of)
LY Libyan Arab Jamahiriya
LI Liechtenstein (Principality of)
LT Lithuania
LU Luxembourg (Grand Duchy of)
MO Macau (Ao-me'n)
MG Madagascar (Democratic Republic of)
MW Malawi (Republic of)
MY Malaysia
MV Maldives (Republic of)
ML Mali (Republic of)
MT Malta (Republic of)
MH Marshall Islands (Republic of the)
MQ Martinique (French Department of)
MR Mauritania (Islamic Republic of)
MU Mauritius
MX Mexico (United Mexican States)
FM Micronesia (Federated States of)
MD Moldova (Republic of)
MC Monaco (Principality of)
MN Mongolia (Mongolian People's Republic)
MS Montserrat
MA Morocco (Kingdom of)
MZ Mozambique (People's Republic of)
MM Myanmar (Union of)
NA Namibia (Republic of)
NR Nauru (Republic of)
NP Nepal (Kingdom of)
NL Netherlands (Kingdom of the)
AN Netherlands Antilles
NT Neutral Zone (between Saudi Arabia and Iraq)
NC New Caledonia
NZ New Zealand
NI Nicaragua (Republic of)
NE Niger (Republic of the)
NG Nigeria (Federal Republic of)
NU Niue
NF Norfolk Island
MP Northern Mariana Islands (Commonwealth of the)
NO Norway (Kingdom of)
OM Oman (Sultanate of)
PK Pakistan (Islamic Republic of)
PW Palau (Republic of)
PA Panama (Republic of)
PG Papua New Guinea
PY Paraguay (Republic of)
PE Peru (Republic of)
PH Philippines (Republic of the)
PN Pitcairn
PL Poland (Republic of)
PT Portugal (Portuguese Republic)
PR Puerto Rico
QA Qatar (State of)
RE Re'union (French Department of)
RO Romania
RU Russian Federation
RW Rwanda (Rwandese Republic)
SH Saint Helena
KN Saint Kitts and Nevis
LC Saint Lucia
PM Saint Pierre and Miquelon (French Department of)
VC Saint Vincent and the Grenadines
WS Samoa (Independent State of)
SM San Marino (Republic of)
ST Sao Tome and Principe (Democratic Republic of)
SA Saudi Arabia (Kingdom of)
SN Senegal (Republic of)
SC Seychelles (Republic of)
SL Sierra Leone (Republic of)
SG Singapore (Republic of)
SK Slovakia
SI Slovenia
SB Solomon Islands
SO Somalia (Somali Democratic Republic)
ZA South Africa (Republic of)
ES Spain (Kingdom of)
LK Sri Lanka (Democratic Socialist Republic of)
SD Sudan (Democratic Republic of the)
SR Suriname (Republic of)
SJ Svalbard and Jan Mayen Islands
SZ Swaziland (Kingdom of)
SE Sweden (Kingdom of)
CH Switzerland (Swiss Confederation)
SY Syria (Syrian Arab Republic)
TW Taiwan, Province of China
TJ Tajikistan
TZ Tanzania (United Republic of)
TH Thailand (Kingdom of)
TG Togo (Togolese Republic)
TK Tokelau
TO Tonga (Kingdom of)
TT Trinidad and Tobago (Republic of)
TN Tunisia
TR Turkey (Republic of)
TM Turkmenistan
TC Turks and Caicos Islands
TV Tuvalu
UG Uganda (Republic of)
UA Ukraine
AE United Arab Emirates
GB United Kingdom (United Kingdom of Great Britain and Northern
Ireland)
US United States (United States of America)
UM United States Minor Outlying Islands
UY Uruguay (Eastern Republic of)
UZ Uzbekistan
VU Vanuatu (Republic of, formerly New Hebrides)
VA Vatican City State (Holy See)
VE Venezuela (Republic of)
VN Vietnam (Socialist Republic of)
VG Virgin Islands (British)
VI Virgin Islands (U.S.)
WF Wallis and Futuna Islands
EH Western Sahara
YE Yemen (Republic of)
YU Yugoslavia (Socialist Federal Republic of)
ZR Zaire (Republic of)
ZM Zambia (Republic of)
ZW Zimbabwe (Republic of)

 

آیا این پاسخ مفید بود؟

 چاپ این مقاله

خوانده شده

تهیه backup و Restore آن به وسیله SSH

  در این پست شما یاد خواهید گرفت که چگونه در کنترل پنل قدرتمند Cpanel بتوانید به وسیله دستورات...

هاست چیست؟ - what is host

وب هاستینگ همان چیزی است که وقتی می خواهید وب سایت تان روی شبکه بین المللی (اینترنت) برای همه...

دستورات کاربردی لینوکس - command linux

در اینجا دستورات کاربردی و کمیاب لینوکس را قرار میدهیم، این پست هرچند وقت بروز خوهد شد.  ...

آموزش و دستور تنظیم ساعت سرورهای لینوکسی - server clock

برای تنظیم ساعت سرورهای لینوکسی کد زیر را وارد و همانند توضیح ویرایش فرمایید: date -s...

تفاوت لينوكس و ويندوز - linux vs windows

    در زمينه ميزبانی وب همواره 2 سيستم عامل مهم وجود داشته است: ويندوز و يونيکس...