• We value your experience with Plesk during 2024
    Plesk strives to perform even better in 2025. To help us improve further, please answer a few questions about your experience with Plesk Obsidian 2024.
    Please take this short survey:

    https://pt-research.typeform.com/to/AmZvSXkx
  • The Horde webmail has been deprecated. Its complete removal is scheduled for April 2025. For details and recommended actions, see the Feature and Deprecation Plan.
  • We’re working on enhancing the Monitoring feature in Plesk, and we could really use your expertise! If you’re open to sharing your experiences with server and website monitoring or providing feedback, we’d love to have a one-hour online meeting with you.

Resolved How to protect domain.cc/ftpstat on plesk web admin

Hi WSNHosting,

the standart protection is already configured in your configuration files:
Code:
...

        Alias "/plesk-stat" "/var/www/vhosts/system/YOUR-DOMAIN.COM/statistics"
        <Location  /plesk-stat/>
            Options +Indexes
        </Location>
        <Location  /plesk-stat/logs/>
            Require valid-user
        </Location>
        Alias /webstat /var/www/vhosts/system/YOUR-DOMAIN.COM/statistics/webstat
        Alias /webstat-ssl /var/www/vhosts/system/YOUR-DOMAIN.COM/statistics/webstat-ssl
        Alias /ftpstat /var/www/vhosts/system/YOUR-DOMAIN.COM/statistics/ftpstat
        Alias /anon_ftpstat /var/www/vhosts/system/YOUR-DOMAIN.COM/statistics/anon_ftpstat
        Alias /awstats-icon /usr/share/awstats/icon

...

        <Directory "/var/www/vhosts/system/YOUR-DOMAIN.COM/statistics">
            AuthType Basic
            AuthName "Domainstatistiken"
            AuthUserFile "/var/www/vhosts/system/YOUR-DOMAIN.COM/pd/d..httpdocs@plesk-stat"
            require valid-user
        </Directory>

... with login credentials for your "domain-system-user" and the corresponding password, which you setup when you created the subscription. ;)
 
AuthUserFile "/var/www/vhosts/system/YOUR-DOMAIN.COM/pd/d..httpdocs@plesk-stat"

d..httpdocs@plesk-stat ??

i see folder /pd/ not have file ?


Hi WSNHosting,

the standart protection is already configured in your configuration files:
Code:
...

        Alias "/plesk-stat" "/var/www/vhosts/system/YOUR-DOMAIN.COM/statistics"
        <Location  /plesk-stat/>
            Options +Indexes
        </Location>
        <Location  /plesk-stat/logs/>
            Require valid-user
        </Location>
        Alias /webstat /var/www/vhosts/system/YOUR-DOMAIN.COM/statistics/webstat
        Alias /webstat-ssl /var/www/vhosts/system/YOUR-DOMAIN.COM/statistics/webstat-ssl
        Alias /ftpstat /var/www/vhosts/system/YOUR-DOMAIN.COM/statistics/ftpstat
        Alias /anon_ftpstat /var/www/vhosts/system/YOUR-DOMAIN.COM/statistics/anon_ftpstat
        Alias /awstats-icon /usr/share/awstats/icon

...

        <Directory "/var/www/vhosts/system/YOUR-DOMAIN.COM/statistics">
            AuthType Basic
            AuthName "Domainstatistiken"
            AuthUserFile "/var/www/vhosts/system/YOUR-DOMAIN.COM/pd/d..httpdocs@plesk-stat"
            require valid-user
        </Directory>

... with login credentials for your "domain-system-user" and the corresponding password, which you setup when you created the subscription. ;)
 
Hi WSNHosting,

FIRST, pls. CHECK, that your configuration files includes the protection ( pls. check it for apache AND nginx configuration files! ).

If it does and you still don't have the "htaccess" - equivalent, which Plesk uses to secure statistics, pls. consider to head over to:

=> HOME > Domains > YOUR-DOMAIN.COM > Password-Protected Directories

... and check if the setting for "/plesk-stat" is available.


It it doesn't exist, pls. consider to add the desired folder to protect it as setup within standard creations over the Plesk Control Panel. ;)
 
hello

i add it

sshot-62.jpg

sshot-63.jpg

but not work

if i add file .htaccess is work but can't login

sshot-64.jpg

AuthType Basic
AuthName "Domainstatistiken"
AuthUserFile "/var/www/vhosts/system/domain.com/pd/d..httpdocs@plesk-stat"
require valid-user




Hi WSNHosting,

FIRST, pls. CHECK, that your configuration files includes the protection ( pls. check it for apache AND nginx configuration files! ).

If it does and you still don't have the "htaccess" - equivalent, which Plesk uses to secure statistics, pls. consider to head over to:

=> HOME > Domains > YOUR-DOMAIN.COM > Password-Protected Directories

... and check if the setting for "/plesk-stat" is available.


It it doesn't exist, pls. consider to add the desired folder to protect it as setup within standard creations over the Plesk Control Panel. ;)
 
Hi WSNHosting,

you seem to like screenshots, so I try to explain it with screenshots:

Plesk-Onyx_Protected-folders_01.png

Plesk-Onyx_Protected-folders_02.png

Plesk-Onyx_Protected-folders_03.png

Or pls. go to:

=> HOME > Subscriptions > YOUR-DOMAIN.COM > Hosting Settings

and scroll to the setting: Web statistics (Protect access to your web statistics with your FTP username and password )
 
Back
Top