Country codes for mod_security, CSF and htaccess

Her’s a list of useful country codes that we can use in many rule-based filtering situations on servers.

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

A few lesser-used ones below, but for completeness here they are:

ARPA Arpanet
COM US Commercial
EDU US Educational
GOV US Government
INT International
MIL US Military
NATO Nato field
NET Network
ORG Non-Profit Organization


Traffic Travis Pro and charity offer SEO tools bundle

There’s a charity offer on in aid of the flood victims of Owego, NY. There is a huge amount of SEO coaching stuff bundled together from various people and what is particularly impressive is that it also contains Traffic Travis Pro version. Huge amounts of people are using the free version because the pro retails at $97. It’s version 4.0 so is current too. The Pro version monitors your keywords, analyses your site and backlinks plus a lot more.

The offer is incredibly well priced at $17 but ends Monday 10th October so it pays to get in quickly.

Sorry, this offer has now ended.

 

 


Disable Google personalized search

It’s difficult to get an accurate set of search results these days from Google as they unfortunately personalize far too much, even if you explicitly tell them not to. Now they have integrated Google Plus into the search results, it’s even more difficult.

Google remove personalization

“Aha” I hear you shout, “I can turn that personalization off by clicking on the settings gear at the top right of the Google page, then clicking ‘Search Settings’ can’t I?”. Well, no you can’t, this just makes “Hide personal results” the default. Worryingly, this choice is not saved with your Google profile and it’s forgotten on browser restart.

So how does someone easily make a fresh, unbiased Google search these days? Well, I would recommend you install Yoast’s excellent free plugin for Firefox and Internet Explorer here:

http://yoast.com/tools/seo/disable-personalized-search-plugin/

For me, I build websites primarily for US and UK, so I selected “Install for Google.com” and “Install for Google.co.uk”.  Set it as your default and use it for your searches as normal.  It removes personal messages like ‘You visited this site 4 times’ which demonstrate that Google tracks you and weights your search preferences accordingly.

For tracking the actual ranking of websites rather than biased ones, it is an invaluable free tool.


WordPress SEO by Yoast – using sitemaps

If you are using the fabulous WordPress SEO plugin by Yoast, you’ll find that it also does the job of creating a sitemap for you.  You need to opt in to this within the plugin’s settings field here:
XML sitemaps” then tick the “Check this box to enable XML sitemap functionality“.

There are a few caveats that this plugin doesn’t make you aware of though and this can affect the whole indexing of your website by the search engines.

1. If you are now making reference to this sitemap elsewhere (such as within W3 Total Cache etc) then you will need to alter the path to your sitemap thus:

http://yourdomain.com/sitemap_index.xml

2.  You will need to remove any other sitemaps from your root folder. Look for:

sitemap.xml
sitemap.xml.gz

 

3.  Make sure that your robots.txt has this line:

http://www.yourdomain.com/sitemap_index.xml

 

Your XML sitemap doesn’t actually exist at this location so don’t think it’s not working if you can’t see this file. Yoast’s WordPress SEO plugin places the files in a subfolder of your uploads directory, and using WP Rewrite the URL will resolve to the right sitemap. It also works with Multi Site installs whether domain mapped or not.  To check it is functioning, fire up your browser and navigate to the sitemap (as in step 3 above). You should see the file there.

 

Hope this helps!

 


SERPBuddy review and free trial

SERPbuddy is a premier online SERP tracker that was built by SEO professionals. For those who don’t know, SERP stands for Search Engine Results Page.

The data that SERPBuddy presents is well formatted and offers everything that people need to accurately gauge the rank and position of a search keyword for any website. There is built in reporting and management for your Keyword Rankings, Backlinks, Pagerank and Alexa Rank. The dashboard is easy to use and the software is responsive.

 

SERPBuddy review – features

SERPbuddy will notify you by email of changes in your search engine rankings, or they can just notify you when your chosen keyword reaches the first page (or if you are lucky, the top position!).  This is a nice feature as it means that you can do other things and forget the daily check.  With all of the Google updates it’s also a nice way to see if your site drops off the radar completely.

The impressive thing about  this relatively new software is the SERP buddy free trial, so you can see if it suits you.

SERPBuddy review – reports

Creating attractive, branded reports is easy, so this would suit an SEO company just as well as an individual. Simply upload your logo and you can create rather impressive reports that clients will like. You can download to PDF or email the report(s) directly to your clients. Very simple, neat and efficient.

 

More information about SERPBuddy here