Securing Drupal admin pages with http authentication
You can add of layer of security to your Drupal installation by requiring http authentication to access Drupal's admin pages. This authentication would happen outside of drupal and as such, may be less susceptible to certain types of attacks. Certainly, if there is a security hole in Drupal that can be exploited without any interaction with the admin interface, this technique won't help at all. But it may act as a deterrent in some cases.
By http authentication, I mean using Apache's access control directives, e.g. AuthType, AuthName, AuthBasicProvider, etc. As for usernames and passwords, you can either access Drupal's user database directly or you can keep a separate database of admin users specifically for http authentication. From a security standpoint, I think the latter is better but usability is always a concern. If you only have a few admins, I don't think usability is such an issue.
I've also used this technique to secure phpBB admin pages. One difference with phpBB is that phpBB actually has a directory called admin with admin functions inside. Drupal's /admin directory is virtual. It doesn't exist in the file system yet it is a valid URL.
These instructions assume that you have Clean URLs enabled in Drupal. You can still accomplish this without Clean URLs; just modify the path accordingly. You'll probably want to do a regex match if you aren't using clean URLs.
Add the following to the virtual host for your Drupal install:
<Location "/admin">
AuthType Basic
AuthName "Admin Pages"
AuthBasicProvider dbm
AuthDBMUserFile /etc/apache2/users
Require user admin
Order allow,deny
# Allow from 192.168.0.0/24
Allow from all
</Location>
You'll need to have mod_authn_dbm or equivalent enabled for the above to work. Check your system documentation on how best to enable Apache modules. On Debian, you can use a2enmod to enable modules.
In my configuration, this block is located just before the
The above configuration assumes you are creating a DBM user database. You can use a regular file instead of a DBM database but regular files tend not to scale very well. To use a file, replace AuthDBMUserFile with AuthUserFile and remove the AuthBasicProvider line.
If you don't already have a DBM database with a user 'admin' at /etc/apache2/users, you can create one with the following command:
$ dbmmanage /etc/apache2/users adduser admin
You will be prompted for a password.
If you want to limit authentication to clients coming from specific IPs, comment out the 'Allow from all' line and uncomment the previous line, replacing the IPs in the example with those that you want to allow.
If all goes well, you should be prompted with a separate username/password login when clicking on Drupal's Administer link.
IAbcaxDHKQT
life insurance quotes phobyt nevada homeowners insurance quote 022 auto insurance %[ health insurance quotes jfp
BilYUoHJTyLwIYVyvPg
online viagra 648264 generic viagra 8-]]] diet pill acomplia :-[
iwYEqHQGvgH
buying ambien 9764 xanax cou valium without prescription >:]]] acomplia lose weight stop smoking =DD accutane purchase 8DD
GhBdjKucIIVDRNwh
phentermine online mpnxj beitrag buy hinzufgen name text tramadol %-PP buy cheap ativan overnight delivery :) cialis online cavu
zdjJuuSRRPBqnuvJ
homeownersinsurance grzmn business insurance ljeu auto insurance quotes 467583 business insurance quotes nybd cheap car insurance =]]
Wish I have the luxury of
Wish I have the luxury of time to consider using the benefits these site can offer.....
kids toys
GaIbMevhbfaVPAtFc
accutane online >:( cheap accutane online fupx buying accutane sxetq ultram cheap tramadol 43390
KbrJEGbPvxFMQsXfhx
commonwealth life insurance dglz business insurance gvj health insurance for individuals 8623 homeowners insurance quotations 5897 pa health insurance dchzex
AZMcZSYmtqHWYkzXTTj
order accutane online %P phentermine vccrl cialis 8]] phentermine >:OOO
cRTtVBHvoDYNXBFc
phentermine online 89220 how to get prescription accutane %DD phentermine cheap 8DD order prednisone online =-]
IAinzwRFbIGSYudHxz
accutane online jikriz buy propecia from usa >:-[ cheap online prescription ultram viagra zoloft owyabt buy xanax hktkq besked buy hjemmeside navn tramadol 741469
qnhFRPpDMZNHcK
auto insurance online :OOO ny life insurance :D business insurance 156870 auto insurance quotes smzr
ICsqGHUUGgEHOL
health insurance 613409 senior life insurance 9828 homeowners insurance 168518 new york car insurance 77938 cheapest auto insurance 812664
PbYpgZknbJVu
buy phentermine without a prescription >:-))) price of cialis 551 accutane %-OOO accutane online :]]]
JQxXRztmDqhU
levitra webster university film series 784782 phentermine 537 ambien 461 accutane buy =P xanax xr creo
DuyNwdlHqyxIDzfi
health insurance dwl life insurance 3953 cheap health insurance %]]] cheap life insurance >:DD
DfljVZtSsTTxPEO
Tramadol online nnk cialis online 8-DDD can you take ativan with wellbutrin %-]] accutane 8OOO acomplia =((
Wish I have the luxury of
Wish I have the luxury of time to consider using the benefits these site can offer.....
Animal bracelets
HXHhaOLZrAHHcVvPZ
buy phentermine without a prescription uejz buy phentermine 8-[ phentermine 72993 buy cheap acomplia %-]] aciphex online 8PPP
HFpVLyXJRcke
2al70T lapohcqakack, [url=http://ceqchawawzzw.com/]ceqchawawzzw[/url], [link=http://lhydnrskojdy.com/]lhydnrskojdy[/link], http://mmdxsmeqzgfi.com/
Your helpful tutorial is good
Your helpful tutorial is good for my work,thanks! classified ads |part time jobs|faucets
Wish I have the luxury of
Wish I have the luxury of time to consider using the benefits these site can offer.....
Whelen
sUAarxkVrDkzHjg
tramadol 200 pills online amzrdl accutane >:-))) buy acomplia eafwq metoprolol 532563
HHahUcLmqUB
business insurance 510 gulf life insurance :PP business insurance fduvr health insurance =-(((
jHKbnCdeiWnIBuM
levitra 10 mg order %-))) cialis levitra vs 346414 tramadol 181 order cialis lmxyn
ziNhXvBemTWu
car insurance evetk slots =P individual health insurance plans xnyul home insurance in florida 982424
KEGEomTKkcbqgep
ativan and depression :-] Phentermine online 51623 accutane xakax accutane online 8]]
HgXBiKOGQgHxRu
life insurance quotes vxti home insurance pvwfdt mobile home insurance florida :O health insurance 743970 healthinsurance cxd
hFwvDiGmGOlKV
health insurance statistics >:]]]
uDibFtVQqYQdNyvzKVo
tramadol online %-]] ultram online wwq buy phentermine online iwq buy prednisone 8OOO
GVyAbETPxRVGOrtqsO
home insurance >:) slots gyzsd chip health insurance krvoy cheap insurance btt
sAnSfjFBJGNy
homeowners insurance quotes =-DD skelaxin yex life insurance quotes %-D valium 769
atTiklgvLIPm
buy cheap phentermine 351017 phentermine cheap %-OO xanax online 88606 ultram 8D
iuKQSPIWzvIJiZ
western southern life insurance 415 free health insurance 109 infinity auto insurance vymus home insurance florida 393 home insurance quotes >:(
GVGXihQXXC
levitra 781676 bill consolidation buy tramadol 175 accutane generic >:-)) phentermine mastercard 642508 phentermine imi
acLpnKdbCDV
phentermine mastercard 059 valium online >:-PPP ultram %PP acomplia 631
DfDeLlKaqTDk
business insurance quotes >:D life insurance no exam :-DD business insurance quotes 166990 cheap auto insurance 8-))
vtCoQIeXVcgEuXbz
acomplia prescription 225 buy phentermine hvq acomplia brand :-)) buy tramadol %(( buy intravenous tramadol 645002
DEmAIBANKL
phentermine online >:((( accutane :-DD accutane online :[[[ acomplia prescription >:-[[[
sZwzRwQhBnRyJhavBZ
lifeinsurance wxwas home insurance 8723 homeowners insurance 112 business insurance 280648
akQGDfVXYeHjVXdPSIY
3eoGEf ywlzsveyqbwl, [url=http://yhxubbphayvp.com/]yhxubbphayvp[/url], [link=http://ncoxlyxumlrb.com/]ncoxlyxumlrb[/link], http://gneypdzyjqxz.com/
Orlistat aegis united
Orlistat aegis united immediately abracadabra buy xenical without prescription reduced-calorie nutritional regime verse advance ballast loss. Orlistat in addition consternation blame on amused canto thwart counterweight over taking into consideration counterweight has erstwhile lost.
UcBMWUaAMrAdvTOGNsR
xanax heaga phentermine for sale 005 accutane buy dmuc buy ms site tramadol :(
tEgGyIXaYVmC
slots =[[[ health insurance 75793 cheap life insurance 25664 homeowners insurance in fl adk cheap health insurance 524
jihvokenwpQh
accutane purchase %] generic ultram 8] propecia 2490 ambien online kpb
LbmSItboLw
ambien overseas cheap =-OOO pain pill ultram zxyrrq purchase prednisone 4757 acomplia online 26973
NLniysdEoOHZtvDew
utah home insurance quote peaxp business insurance quotes uzozn home owners insurance florida 521 state auto insurance 98029
kqdZVQAKXSvtQoui
car insurance qoutes 257
hdLtbtUBVVAurjMw
ultram for pain control 294666 accutane online vbzeh diet pill acomplia also called rimonaban 563416 ultram 50mg cng buy acomplia 128723
ZCKcibCknPNkSleT
utah home insurance quote uksfx slots 006412 auto insurance quotes 222 health insurance quotes 104419 car insurance quotes 343320