BotDetect CAPTCHA Arabic Localization
This page contains the details of Arabic Captcha (Captcha العربية) locales fully supported by BotDetect, for which there are both localized Captcha images and audio Captcha sounds available.
Supported Arabic CAPTCHA Locales
UAE (Gulf) Arabic CAPTCHA
Captcha Locale overview:
| Language | Country | BotDetect Locale settings |
|---|---|---|
| Arabic | United Arab Emirates | ar-AE |
Examples and specifications of individual Captcha feature localizations:
- UAE Arabic localized Captcha images
- UAE Arabic localized audio Captcha sounds
- UAE Arabic localized Captcha codes
UAE Arabic Localized CAPTCHA Images
Example Captcha images generated by BotDetect using the base Arabic character set for all Captcha ImageStyle values can be seen in the BotDetect Captcha image styles demo
To use BotDetect Captcha images localized for the UAE Arabic Captcha Locale in your application, you can specify the Locale value:
- In PHP applications, you can use either the application-global setting in the
lib/botdetect/CaptchaConfig.phpfile:// Set the default Locale for all Captcha instances in the // PHP application to UAE Arabic $LBD_CaptchaConfig->Locale = 'ar-AE';
or the Captcha object instance-specific value:<?php $SampleCaptcha = new Captcha("SampleCaptcha"); $SampleCaptcha->UserInputID = "CaptchaCode"; // Set the Captcha object instance Locale to UAE Arabic $SampleCaptcha->Locale = 'ar-AE'; echo $SampleCaptcha->Html(); ?>
Since Arabic text is drawn right-to-left, you should also set the appropriate text direction on the textbox element used for Captcha code retyping:
<input name="CaptchaCode" type="text" id="CaptchaCode" dir="rtl" />
- In ASP.NET applications, you can use either the
.aspxpage source:<!-- Captcha control localized to UAE Arabic --> <BotDetect:Captcha ID="SampleCaptcha" runat="server" Locale="ar-AE" />
or the page code-behind:[C#] // Set the Captcha instance Locale to UAE Arabic SampleCaptcha.Locale = "ar-AE";[VB.NET] ' Set the Captcha instance Locale to UAE Arabic SampleCaptcha.Locale = "ar-AE"Locale-dependent Captcha strings can be configured in the
<botDetect> Web.configconfiguration section.Since Arabic text is drawn right-to-left, you should also set the appropriate text direction on the textbox element used for Captcha code retyping:
<asp:TextBox ID="CaptchaCodeTextBox" runat="server" dir="rtl"></asp:TextBox>
- In ASP Classic applications, you can use either the application-global setting in the
BotDetect\CaptchaConfig.aspfile:' Set the default Locale for all Captcha instances in the ' Classic ASP application to UAE Arabic LBD_Configuration_Locale = "ar-AE"
or the Captcha object instance-specific value:<% Dim SampleCaptcha : Set SampleCaptcha = (New Captcha)("SampleCaptcha") SampleCaptcha.UserInputID = "CaptchaCode" ' Set the Captcha object instance Locale to UAE Arabic SampleCaptcha.Locale = "ar-AE" Response.Write SampleCaptcha.Html %>
Since Arabic text is drawn right-to-left, you should also set the appropriate text direction on the textbox element used for Captcha code retyping:
<input name="CaptchaCode" type="text" id="CaptchaCode" dir="rtl" />
UAE Arabic Localized audio CAPTCHA Sounds
Example audio Captcha sounds generated by BotDetect using the Arabic UAE Locale setting can be heard in the BotDetect Captcha features demo
To use BotDetect sounds localized for the UAE Arabic Captcha Locale, you should also download the UAE Arabic Pronunciation Sound Package and deploy the .bdsp file to the BotDetect sounds folder your application uses:
- PHP applications always use
lib/botdetect/Resources/Sounds. - ASP.NET applications use
Bin\BotDetectSoundsby default. A custom folder can be specified in the<botDetect>configuration section. - ASP Classic applications use
Redistribute\BotDetectSoundsin the BotDetect installation folder by default. A custom folder can be specified in theBotDetect/CaptchaConfig.aspfile.
UAE Arabic Localized CAPTCHA Codes
The ar-AE Captcha locale uses the default Arabic character set, consisting of isolated forms of 28 standard characters.
Unicode Captcha Codes and Font Requirements
This table on the left uses the actual Unicode characters drawn in localized Captcha images.
Displaying these characters in your browser requires having fonts which support them installed on the client machine.
In ASP.NET and ASP Classic versions of BotDetect, generating localized Captcha images using these characters also requires supporting fonts on your server.
If viewing these characters in your browser or generating them in Captcha images on your server fails, you can enable the required localization support for on both client and server machines using Control Panel:
Windows 2000, XP, 2003 Server: Regional and Language Options → Languages → Supplemental language support.
Windows Vista, 7, 2008 Server: Region and Language → Keyboards and Languages → Install/uninstall languages.
CodeStyle.Alpha UAE Arabic CAPTCHA Characters
| Unicode code point | Name | Character |
|---|---|---|
0x0627 |
alef | ا (not used) |
0x0628 |
beh | ب |
0x062A |
teh | ت |
0x062B |
theh | ث |
0x062C |
jeem | ج |
0x062D |
hah | ح |
0x062E |
khah | خ |
0x062F |
dal | د |
0x0630 |
thal | ذ |
0x0631 |
reh | ر |
0x0632 |
zain | ز |
0x0633 |
seen | س |
0x0634 |
sheen | ش |
0x0635 |
sad | ص |
0x0636 |
dad | ض |
0x0637 |
tah | ط |
0x0638 |
zah | ظ |
0x0639 |
ain | ع |
0x063A |
ghain | غ |
0x0641 |
feh | ف |
0x0642 |
qaf | ق |
0x0643 |
kaf | ك |
0x0644 |
lam | ل |
0x0645 |
meem | م |
0x0646 |
noon | ن |
0x0647 |
heh | ه (not used) |
0x0648 |
waw | و(not used) |
0x064A |
yeh | ي |
CodeStyle.Numeric UAE Arabic CAPTCHA Characters
| Unicode code point | Name | Character |
|---|---|---|
0x0030 |
zero | 0 |
0x0031 |
one | 1 |
0x0032 |
two | 2 |
0x0033 |
three | 3 |
0x0034 |
four | 4 |
0x0035 |
five | 5 |
0x0036 |
six | 6 |
0x0037 |
seven | 7 (not used) |
0x0038 |
eight | 8 |
0x0039 |
nine | 9 |
CodeStyle.Alphanumeric UAE Arabic CAPTCHA Characters
| Unicode code point | Name | Character |
|---|---|---|
0x0627 |
alef | ا (not used) |
0x0628 |
beh | ب |
0x062A |
teh | ت |
0x062B |
theh | ث |
0x062C |
jeem | ج |
0x062D |
hah | ح |
0x062E |
khah | خ |
0x062F |
dal | د |
0x0630 |
thal | ذ |
0x0631 |
reh | ر |
0x0632 |
zain | ز |
0x0633 |
seen | س |
0x0634 |
sheen | ش |
0x0635 |
sad | ص |
0x0636 |
dad | ض |
0x0637 |
tah | ط |
0x0638 |
zah | ظ |
0x0639 |
ain | ع |
0x063A |
ghain | غ |
0x0641 |
feh | ف |
0x0642 |
qaf | ق |
0x0643 |
kaf | ك |
0x0644 |
lam | ل |
0x0645 |
meem | م |
0x0646 |
noon | ن |
0x0647 |
heh | ه(not used) |
0x0648 |
waw | و(not used) |
0x064A |
yeh | ي |
0x0030 |
zero | 0 |
0x0031 |
one | 1 (not used) |
0x0032 |
two | 2 |
0x0033 |
three | 3 |
0x0034 |
four | 4 |
0x0035 |
five | 5 |
0x0036 |
six | 6 |
0x0037 |
seven | 7 (not used) |
0x0038 |
eight | 8 |
0x0039 |
nine | 9 |
If you want to customize the exact character set used for Captcha code generation, you can specify your custom charsets in PHP, ASP.NET and Classic ASP implementations of BotDetect.
Current BotDetect Versions
- BotDetect PHP CAPTCHA v3.0.Beta12013 May 20
- BotDetect ASP.NET CAPTCHA v3.0.142013 May 20
- BotDetect ASP Classic CAPTCHA v3.0.142013 May 20



