banner_gmail

Come utilizzare l’alias e-mail @altervista.org con Google Mail (GMail) VERSIONE 2015

La seguente soluzione all’uso dell’alias con GMail mi è stata suggerita da Fabrizio P. webmaster di http://gommistadomiciliomilano.altervista.org/ il quale ha contribuito a questo sito con questa magnifico escamotage.

  1. Colleghiamoci alla Verifica in due passaggi di Google.
  2. Premere sul bottone azzurro “Inizia configurazione »“.
    gmail2015_1
  3. Inserire nell’apposito campo un nostro numero di telefono (se ci troviamo all’estero ricordiamoci di cambiare il prefisso telefonico cliccando sull’icona della bandiera), scegliamo se desideriamo ricevere un SMS o una Chiamata e premiamo su Invia codice.
    gmail2015_2
  4. Ricevuto il codice di 6 cifre inseriamolo nell’apposito campo e premiamo il bottone Verifica per proseguire.
    gmail2015_3
  5. Attenzione a questo passaggio: se ci troviamo su un pc che utilizziamo solo noi (o la nostra famiglia) proseguiamo altrimenti se si tratta di un pc pubblico o condiviso con più persone leviamo la spunta a “Questo computer è attendibile” ed andiamo Avanti ».
    gmail2015_4
  6. Terminiamo la procedura guidata premendo il bottone Conferma.
    gmail2015_5
  7. Se compare il seguente pop-up premere In seguito.
    gmail2015_6
  8. in alto premere sul secondo tab: Password specifiche per l’app.
    gmail2015_7
  9. Premere il pulsante Gestisci le password specifiche per le mie applicazioni.
    gmail2015_8
  10. Nel selectbox Seleziona applicazioni scegliamo Posta mentre nel selecbox Seleziona dispositivo scegliamo Altro (nome personalizzato).
    gmail2015_9 gmail2015_10
  11. Adesso scriviamo un nome per ricordaci il tipo di applicazione che stiamo creando (ad esempio “Alias AlterVista”) ed infine premiamo il bottone GENERA.
    gmail2015_11
  12. A questo punto si aprirà un popup con una password generata in modo casuale. Copiamola e premiamo Fine.
    gmail2015_12
  13. Adesso non ci resta che impostare il vero e proprio alias. Come prima cosa accediamo a GMail.
  14. In alto a destra, cliccare sull’ingranaggio grigio presente sotto la foto di profilo e, successivamente, nel menù a tendina che si aprirà su Impostazioni.
    gmail2015_13
  15. Nel menù orizzontale scegliere il tab Account e importazione.
    gmail2015_14
  16. Dalla sezione Invia messaggio come: scegliamo Aggiungi un altro indirizzo email di tua proprietà.
    gmail2015_15
  17. Fatto ciò si aprirà una nuova finestra. Compiliamola con Nome il nostro nome o nickname ed Indirizzo email il nostro alias altervista, selezioniamo la spunta Considera come un alias e proseguiamo al Passaggio successivo ».
    gmail2015_16
  18. ATTENZIONE a questo passaggio: compiliamo come segue:
    • Server SMTP: smtp.gmail.com
    • Porta: 587
    • Nome utente: (il nostro nome utente gmail)
    • Password: (password generata in precedenza al passaggio 12)
    • Connessione protetta: TLS

    Configurato ciò clicchiamo su Aggiungi account ».
    gmail2015_17

  19. A questo punto abbiamo due alternative:
    1. Ridurre ad icona questa finestra, leggere dall’e-mail il codice di verifica, inserirlo nell’apposito spazio e cliccare su Verifica.
    2. Chiudere la finestra e proseguire con il prossimo passaggio.
      gmail2015_18
  20. Accedere alla Posta in Arrivo e confermare il link nell’e-mail di Google.
    gmail2015_19
  21. Configurazione terminata.
    gmail2015_20
  22. Da questo momento in poi quando dovremmo spedire un e-mail tramite il nostro alias sarà sufficiente scegliere, al posto del nostro indirizzo e-mail principale, il nostro alias.
    gmail2015_21
banner_joomla

Codice .htaccess (mod_rewrite) per Joomla 3.4.x

Codice ottimizzato per Joomla 3.4.x

RewriteEngine On
RewriteBase /

RewriteCond %{QUERY_STRING} base64_encode[^(]*\([^)]*\) [OR]
RewriteCond %{QUERY_STRING} (<|%3C)([^s]*s)+cript.*(>|%3E) [NC,OR]
RewriteCond %{QUERY_STRING} GLOBALS(=|\[|\%[0-9A-Z]{0,2}) [OR]
RewriteCond %{QUERY_STRING} _REQUEST(=|\[|\%[0-9A-Z]{0,2})
RewriteRule .* index.php [F]

RewriteCond %{REQUEST_URI} !^/index\.php
RewriteCond %{REQUEST_URI} /component/|(/[^.]*|\.(php|html?|feed|pdf|vcf|raw))$ [NC]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule .* index.php [L]

Codice originale per Joomla 3.4.x

##
# @package    Joomla
# @copyright  Copyright (C) 2005 - 2015 Open Source Matters. All rights reserved.
# @license    GNU General Public License version 2 or later; see LICENSE.txt
##

##
# READ THIS COMPLETELY IF YOU CHOOSE TO USE THIS FILE!
#
# The line just below this section: 'Options +FollowSymLinks' may cause problems
# with some server configurations.  It is required for use of mod_rewrite, but may already
# be set by your server administrator in a way that disallows changing it in
# your .htaccess file.  If using it causes your server to error out, comment it out (add # to
# beginning of line), reload your site in your browser and test your sef url's.  If they work,
# it has been set by your server administrator and you do not need it set here.
##

## No directory listings
IndexIgnore *

## Can be commented out if causes errors, see notes above.
Options +FollowSymlinks
Options -Indexes

## Mod_rewrite in use.

RewriteEngine On

## Begin - Rewrite rules to block out some common exploits.
# If you experience problems on your site block out the operations listed below
# This attempts to block the most common type of exploit `attempts` to Joomla!
#
# Block out any script trying to base64_encode data within the URL.
RewriteCond %{QUERY_STRING} base64_encode[^(]*\([^)]*\) [OR]
# Block out any script that includes a <script> tag in URL.
RewriteCond %{QUERY_STRING} (<|%3C)([^s]*s)+cript.*(>|%3E) [NC,OR]
# Block out any script trying to set a PHP GLOBALS variable via URL.
RewriteCond %{QUERY_STRING} GLOBALS(=|\[|\%[0-9A-Z]{0,2}) [OR]
# Block out any script trying to modify a _REQUEST variable via URL.
RewriteCond %{QUERY_STRING} _REQUEST(=|\[|\%[0-9A-Z]{0,2})
# Return 403 Forbidden header and show the content of the root homepage
RewriteRule .* index.php [F]
#
## End - Rewrite rules to block out some common exploits.

## Begin - Custom redirects
#
# If you need to redirect some pages, or set a canonical non-www to
# www redirect (or vice versa), place that code here. Ensure those
# redirects use the correct RewriteRule syntax and the [R=301,L] flags.
#
## End - Custom redirects

##
# Uncomment following line if your webserver's URL
# is not directly related to physical file paths.
# Update Your Joomla! Directory (just / for root).
##

# RewriteBase /

## Begin - Joomla! core SEF Section.
#
RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]
#
# If the requested path and file is not /index.php and the request
# has not already been internally rewritten to the index.php script
RewriteCond %{REQUEST_URI} !^/index\.php
# and the requested path and file doesn't directly match a physical file
RewriteCond %{REQUEST_FILENAME} !-f
# and the requested path and file doesn't directly match a physical folder
RewriteCond %{REQUEST_FILENAME} !-d
# internally rewrite the request to the index.php script
RewriteRule .* index.php [L]
#
## End - Joomla! core SEF Section.
banner_joomla

Codice .htaccess (mod_rewrite) per Joomla 3.3.x

Codice ottimizzato per Joomla 3.3.x

RewriteEngine On
RewriteBase /

RewriteCond %{QUERY_STRING} base64_encode[^(]*\([^)]*\) [OR]
RewriteCond %{QUERY_STRING} (<|%3C)([^s]*s)+cript.*(>|%3E) [NC,OR]
RewriteCond %{QUERY_STRING} GLOBALS(=|\[|\%[0-9A-Z]{0,2}) [OR]
RewriteCond %{QUERY_STRING} _REQUEST(=|\[|\%[0-9A-Z]{0,2})
RewriteRule .* index.php [F]

RewriteCond %{REQUEST_URI} !^/index\.php
RewriteCond %{REQUEST_URI} /component/|(/[^.]*|\.(php|html?|feed|pdf|vcf|raw))$ [NC]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule .* index.php [L]

Codice originale per Joomla 3.3.x

##
# @package    Joomla
# @copyright  Copyright (C) 2005 - 2014 Open Source Matters. All rights reserved.
# @license    GNU General Public License version 2 or later; see LICENSE.txt
##

##
# READ THIS COMPLETELY IF YOU CHOOSE TO USE THIS FILE!
#
# The line just below this section: 'Options +FollowSymLinks' may cause problems
# with some server configurations.  It is required for use of mod_rewrite, but may already
# be set by your server administrator in a way that dissallows changing it in
# your .htaccess file.  If using it causes your server to error out, comment it out (add # to
# beginning of line), reload your site in your browser and test your sef url's.  If they work,
# it has been set by your server administrator and you do not need it set here.
##

## Can be commented out if causes errors, see notes above.
Options +FollowSymLinks

## Mod_rewrite in use.

RewriteEngine On

## Begin - Rewrite rules to block out some common exploits.
# If you experience problems on your site block out the operations listed below
# This attempts to block the most common type of exploit `attempts` to Joomla!
#
# Block out any script trying to base64_encode data within the URL.
RewriteCond %{QUERY_STRING} base64_encode[^(]*\([^)]*\) [OR]
# Block out any script that includes a <script> tag in URL.
RewriteCond %{QUERY_STRING} (<|%3C)([^s]*s)+cript.*(>|%3E) [NC,OR]
# Block out any script trying to set a PHP GLOBALS variable via URL.
RewriteCond %{QUERY_STRING} GLOBALS(=|\[|\%[0-9A-Z]{0,2}) [OR]
# Block out any script trying to modify a _REQUEST variable via URL.
RewriteCond %{QUERY_STRING} _REQUEST(=|\[|\%[0-9A-Z]{0,2})
# Return 403 Forbidden header and show the content of the root homepage
RewriteRule .* index.php [F]
#
## End - Rewrite rules to block out some common exploits.

## Begin - Custom redirects
#
# If you need to redirect some pages, or set a canonical non-www to
# www redirect (or vice versa), place that code here. Ensure those
# redirects use the correct RewriteRule syntax and the [R=301,L] flags.
#
## End - Custom redirects

##
# Uncomment following line if your webserver's URL
# is not directly related to physical file paths.
# Update Your Joomla! Directory (just / for root).
##

# RewriteBase /

## Begin - Joomla! core SEF Section.
#
RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]
#
# If the requested path and file is not /index.php and the request
# has not already been internally rewritten to the index.php script
RewriteCond %{REQUEST_URI} !^/index\.php
# and the requested path and file doesn't directly match a physical file
RewriteCond %{REQUEST_FILENAME} !-f
# and the requested path and file doesn't directly match a physical folder
RewriteCond %{REQUEST_FILENAME} !-d
# internally rewrite the request to the index.php script
RewriteRule .* index.php [L]
#
## End - Joomla! core SEF Section.
banner_joomla

Codice .htaccess (mod_rewrite) per Joomla 3.2.x

Codice ottimizzato per Joomla 3.2.x

RewriteEngine On
RewriteBase /

RewriteCond %{QUERY_STRING} base64_encode[^(]*\([^)]*\) [OR]
RewriteCond %{QUERY_STRING} (<|%3C)([^s]*s)+cript.*(>|%3E) [NC,OR]
RewriteCond %{QUERY_STRING} GLOBALS(=|\[|\%[0-9A-Z]{0,2}) [OR]
RewriteCond %{QUERY_STRING} _REQUEST(=|\[|\%[0-9A-Z]{0,2})
RewriteRule .* index.php [F]

RewriteCond %{REQUEST_URI} !^/index\.php
RewriteCond %{REQUEST_URI} /component/|(/[^.]*|\.(php|html?|feed|pdf|vcf|raw))$ [NC]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule .* index.php [L]

Codice originale per Joomla 3.2.x

##
# @package    Joomla
# @copyright  Copyright (C) 2005 - 2014 Open Source Matters. All rights reserved.
# @license    GNU General Public License version 2 or later; see LICENSE.txt
##

##
# READ THIS COMPLETELY IF YOU CHOOSE TO USE THIS FILE!
#
# The line just below this section: 'Options +FollowSymLinks' may cause problems
# with some server configurations.  It is required for use of mod_rewrite, but may already
# be set by your server administrator in a way that dissallows changing it in
# your .htaccess file.  If using it causes your server to error out, comment it out (add # to
# beginning of line), reload your site in your browser and test your sef url's.  If they work,
# it has been set by your server administrator and you do not need it set here.
##

## Can be commented out if causes errors, see notes above.
Options +FollowSymLinks

## Mod_rewrite in use.

RewriteEngine On

## Begin - Rewrite rules to block out some common exploits.
# If you experience problems on your site block out the operations listed below
# This attempts to block the most common type of exploit `attempts` to Joomla!
#
# Block out any script trying to base64_encode data within the URL.
RewriteCond %{QUERY_STRING} base64_encode[^(]*\([^)]*\) [OR]
# Block out any script that includes a <script> tag in URL.
RewriteCond %{QUERY_STRING} (<|%3C)([^s]*s)+cript.*(>|%3E) [NC,OR]
# Block out any script trying to set a PHP GLOBALS variable via URL.
RewriteCond %{QUERY_STRING} GLOBALS(=|\[|\%[0-9A-Z]{0,2}) [OR]
# Block out any script trying to modify a _REQUEST variable via URL.
RewriteCond %{QUERY_STRING} _REQUEST(=|\[|\%[0-9A-Z]{0,2})
# Return 403 Forbidden header and show the content of the root homepage
RewriteRule .* index.php [F]
#
## End - Rewrite rules to block out some common exploits.

## Begin - Custom redirects
#
# If you need to redirect some pages, or set a canonical non-www to
# www redirect (or vice versa), place that code here. Ensure those
# redirects use the correct RewriteRule syntax and the [R=301,L] flags.
#
## End - Custom redirects

##
# Uncomment following line if your webserver's URL
# is not directly related to physical file paths.
# Update Your Joomla! Directory (just / for root).
##

# RewriteBase /

## Begin - Joomla! core SEF Section.
#
RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]
#
# If the requested path and file is not /index.php and the request
# has not already been internally rewritten to the index.php script
RewriteCond %{REQUEST_URI} !^/index\.php
# and the request is for something within the component folder,
# or for the site root, or for an extensionless URL, or the
# requested URL ends with one of the listed extensions
RewriteCond %{REQUEST_URI} /component/|(/[^.]*|\.(php|html?|feed|pdf|vcf|raw))$ [NC]
# and the requested path and file doesn't directly match a physical file
RewriteCond %{REQUEST_FILENAME} !-f
# and the requested path and file doesn't directly match a physical folder
RewriteCond %{REQUEST_FILENAME} !-d
# internally rewrite the request to the index.php script
RewriteRule .* index.php [L]
#
## End - Joomla! core SEF Section.
banner_htpasswd

Generatore file .htpasswd online

Esempio di file .htaccess:

# Esempio di .htaccess 

AuthType Basic 
AuthName Area_Privata 
AuthUserFile "/path/assoluta/.htpasswd" # leggi di seguito
 
require valid-user 

Informazioni corretto uso

  1. Il file .htaccess ed il file .htpasswd devono trovarsi nella stessa directory (opzionale, ma consigliato)
  2. Il file .htaccess va impostato con la corretta corretta path assoluta del proprio server
  3. Il file .htpasswd può contenere un solo username (con relativa password) per riga

Alcune path assolute di hosting:

Hosting Piano Path Assoluta
AlerVista Linux /membri/tuo_nick/
AlterVista (alternativa) Linux /membri2/tuo_nick/
Aruba Linux /web/htdocs/www.tuodominio.ext/home/
Aruba (terzo livello) Linux /web/htdocs/terzolivello.tuodominio.ext/home/
Aruba Windows D:/inetpub/webs/www.tuodominio.ext/
Aruba (terzo livello) Windows D:/inetpub/webs/terzolivello.tuodominio.ext/
Tophost Linux /home/mhd-01/www.tuodominio.ext/htdocs/
Netsons Linux /home/nome_spazio/public_html/