Per creare delle cartelle su un vostro sito web protette da password dovete fare:
1) Collegatevi via ftp al vostro sito web
2) Createvi un file di nome .htaccess con notepad con il seguente contenuto:
Codice:
AuthUserFile /percorso-sito/dir-protetta/.htpasswd
AuthGroupFile /dev/null
AuthName "Mia Directory Protetta"
AuthType Basic
require valid-user
dovete personalizzare la riga AuthUserFile inserendo il percorso del file .htpasswd
In AuthName si inserite il nome che volete dare alla finestra di login (nell'esempio: Mia Directory Protetta)
N.B. il file .htaccess deve essere creato nella cartella che si vuole proteggere da password.
3) Creare il file .htpasswd.
In questo file andremo a scrivere la lista degli utenti autorizzati e la relativa password nel seguente formato:
nome:password
la password dovrà essere inserita in formato md5 per farlo accedete a questi siti:
http://webxtractions.com/cgi-bin/password.cgi
http://www.askapache.com/online-tools/h ... generator/
inserite username e password che volete utilizzare per il vostro file e successivamente premete il tasto "Encrypt it".
ESEMPIO: user mike password pippo
>uscirà: mike:92gmxL87pzQW6
questo è quello che dovete inserire nel file .htpasswd
ATTENZIONE:
Il file .htpasswd e il file .htaccess NON DEVONO AVERE ALCUNA ESTENSIONE
CONSIGLI:
- Utilizzate password con lunghezza minima di 12 caratteri.
- La directory contenente il file .htpasswd dovrebbe trovarsi in una directory esterna a quella in cui è depositato il sito
(se utilizzate un NAS Synology, vuol dire fuori dalla cartella "web"). Tale cartella dovrebbe avere un accesso esclusivo al
solo amministratore del sistema.
N.B.
PER INSERIRE COMMENTI ALLE GUIDE CLICCA QUI.
--------------------------------------------------------------------------------------------
Autori: Mike, Parsipal
GUIDA: Come creare delle cartelle protette da password, su un vostro sito web
Guide, Tips, Manuali.
GUIDA: Come creare delle cartelle protette da password, su un vostro sito web
NAS: DS207. (128MB) | HD: 2x MAXTOR STM3250820AS | FW: 3.1-1636 (since 2007)
NAS: DS209+(512MB) | HD: 2x WD10EACS 1TB RAID-1 | FW: 4.2-3202 (since 2009)
UPS: APC 800 Back-ups RS
NAS: DS209+(512MB) | HD: 2x WD10EACS 1TB RAID-1 | FW: 4.2-3202 (since 2009)
UPS: APC 800 Back-ups RS
Vai a
- SYNOLOGY ITALIA FORUM
- ↳ REGOLAMENTO
- ↳ AVVISI DAL FORUM
- ↳ PRESENTAZIONI
- ↳ GUIDE & TIPS
- ↳ DOMANDE GENERICHE
- ↳ Informazioni pre-acquisto e selezione NAS
- AREA GENERALE
- ↳ Storage (HDD, RAID, SHR, iSCSI, SSD e Cache)
- ↳ RAID e SHR
- ↳ Sostituzione NAS
- ↳ Networking - Servizi e apparecchi di rete (cablaggio e config)
- ↳ SynologyAssistant e DSFinder
- ↳ (D)DNS
- ↳ VPN, QuickConnect e Accesso remoto in genere
- ↳ VPN e PROXY di anonimizzazione
- ↳ UPS e soppressori transitori elettrici (lan/tel)
- ↳ Download Station
- ↳ DSDownload
- ↳ File Station
- ↳ DSFile
- ↳ File Server (Print Server), Backup e Cloud
- ↳ Backup&Restore, RSync, TimeBackup
- ↳ Cloud (CloudStation, CloudClient, CloudSync, CloudBackup, DSCloud, ...)
- ↳ Apple
- ↳ Linux
- ↳ Windows
- ↳ Android
- ↳ FTP Server
- ↳ Web Server (Web Station)
- ↳ Mail Server, Mail Station & Cal/CardDAV
- ↳ MailPlus, MailPlus Server
- ↳ CalDAV & CardDAV server (Baikal)
- ↳ Zarafa e ZPush
- ↳ Chat
- ↳ Note Station
- ↳ DSNote
- ↳ Office, Visualizzatore documenti
- ↳ Surveillance Station
- ↳ DSCam
- ↳ IP Cams
- ↳ Virtualizzazione
- ↳ Docker
- ↳ VirtualDSM
- ↳ VirtualBox
- ↳ Ibernazione - Sospensione
- ↳ spk.synologyitalia.com (e 3rd Party apps)
- ↳ iPKG
- SERVIZI MULTIMEDIALI
- ↳ DLNA Streaming e (Media)Players
- ↳ iTunes Server
- ↳ Plex Media Server
- ↳ Audio Station
- ↳ DSAudio
- ↳ PhotoStation & Blog
- ↳ DSPhoto
- ↳ Video Station
- ↳ DSVideo
- FIRMWARE
- ↳ Notifiche aggiornamenti
- ↳ FW beta
- ↳ 7.x Beta
- ↳ 6.x Beta
- ↳ 5.x Beta
- ↳ 4.x Beta
- ↳ 3.x Beta
- ↳ 2.x Beta
- ↳ FW correnti
- ↳ DSM7.2
- ↳ DSM7.0
- ↳ DSM6.2
- ↳ DSM6.1
- ↳ DSM6.0
- ↳ DSM5.2
- ↳ FW vecchi
- ↳ DSM5.1
- ↳ DSM5.0
- ↳ DSM4.3
- ↳ DSM4.2
- ↳ DSM4.1
- ↳ DSM4.0
- ↳ DSM3.2
- ↳ DSM3.1
- ↳ DSM3.0
- ↳ DSM2.3
- ↳ DSM2.2
- ↳ DSM2.1
- ↳ DSM2.0
- SYNOLOGY HARDWARE (NAS e NVR)
- ↳ Synology serie X22
- ↳ Synology serie X21
- ↳ Synology serie X20
- ↳ Synology serie X19
- ↳ Synology serie X18
- ↳ Synology serie X17
- ↳ Synology serie X16
- ↳ Datasheets X16
- ↳ Synology serie X15
- ↳ Datasheets X15
- ↳ Synology serie X14
- ↳ Datasheets X14
- ↳ Synology serie X13
- ↳ Datasheets X13
- ↳ Synology serie X12
- ↳ Datasheets X12
- ↳ Synology serie X11
- ↳ Datasheets X11
- ↳ Synology serie X10
- ↳ Datasheets X10
- ↳ Synology serie X09
- ↳ Datasheets X09
- ↳ Synology serie X08
- ↳ Synology serie X07
- ↳ Synology serie X06
- ↳ USB Station
- ↳ Network Video Recorder
- ↳ Datasheets VS
- ↳ COMPATIBILITÀ HW/SW
- COMUNITÀ SVILUPPATORI (e non solo):
- ↳ Compilazione
- ↳ Language plugins e scripts (Java, Node.js, Pearl, PHP, Python, Ruby, ?sh)
- ↳ Modding Disk Stations
- OFF TOPIC
- ↳ Ristrutturazioni
- ↳ Domotica
- ↳ Elettronica consumer
- ↳ Altro e Vario
- ↳ Test - Spazzatura
- MERCATINO (COMPRO/VENDO)
- ↳ Compro
- ↳ Vendo