htaccess password protect a single url | Drupal
You can add following code in .htaccess to protect a specific site in Drupal or any other site.
SetEnvIf Request_URI "url-name" auth=1 #the auth block AuthName "Please login." AuthType Basic AuthUserFile ".htpasswd" #Here is where we allow/deny Order Allow,Deny Satisfy any Allow from all Require valid-user # then, deny only if required Deny from env=auth