Posting in the Magento forums has been disabled pending the implementation of a new and improved forum solution which should better serve the community.

For new questions please post at magento.stackexchange.com, the community-run support site for the Magento community. We will be providing updates on the new forum solution soon. For questions or concerns please email community@magento.com.

Magento Forum

Bannare indirizzo IP
 
danieledp87
Jr. Member
 
Total Posts:  16
Joined:  2012-09-28
 

salve a tutti, ho un indirizzo ip che mi sta scandagliando letteralmente il mio sito standoci ore e visitando tutte le pagine ogni giorno. siccome vorrei bannarlo prima che magari faccia qualche cosa visto che mi puzza è possibile bannare l’accesso ad un indirizzo ip su magento?

 
Magento Community Magento Community
Magento Community
Magento Community
 
w a v i
Sr. Member
 
Avatar
Total Posts:  155
Joined:  2007-09-07
Varese
 

Escludendo estensioni a pagamento
e
Varie possibilità via pannello di controllo dell’hosting (cpanel-plesk-o altro) e/o script sul server.

Direi che la piu semplice è aprire il file:  .htaccess e aggiungere Deny from 100.100.100.100
( dove 100.100.100.100 viene sostituito con l’ip incriminato )

in buona sostanza verso la fine del file .htaccess esistente :

############################################
## By default allow all access

Order allow,deny
Deny from 100.100.100.100
Allow from all

############################################

 
Magento Community Magento Community
Magento Community
Magento Community
 
danieledp87
Jr. Member
 
Total Posts:  16
Joined:  2012-09-28
 

ho provato a fare come dici ma ancora lo vedo online ti metto il codice della pagina
Dimmi cosa sbaglio..:(

<IfModule mod_deflate.c>
SetOutputFilter DEFLATE
<IfModule mod_setenvif.c>
# Netscape 4.x has some problems…
BrowserMatch ^Mozilla/4 gzip-only-text/html

# Netscape 4.06-4.08 have some more problems
BrowserMatch ^Mozilla/4\.0[678] no-gzip

# MSIE masquerades as Netscape, but it is fine
# BrowserMatch \bMSIE !no-gzip !gzip-only-text/html

# NOTE: Due to a bug in mod_setenvif up to Apache 2.0.48
# the above regex won’t work. You can use the following
# workaround to get the desired effect:
BrowserMatch \bMSI[E] !no-gzip !gzip-only-text/html

# Don’t compress images
SetEnvIfNoCase Request_URI .(?:gif|jpe?g|png)$ no-gzip dont-vary
############################################
## By default allow all access

Order allow,deny
Deny from 217.73.208.67
Allow from all

############################################
</IfModule>

<IfModule mod_headers.c>
# Make sure proxies don’t deliver the wrong content
Header append Vary User-Agent env=!dont-vary
</IfModule>
</IfModule>

 
Magento Community Magento Community
Magento Community
Magento Community
Magento Community
Magento Community
Back to top