How to restrict access to the Web server in an Ethernet based Anybus CompactCom

13 Jun 2023
 
This article explains how you can restrict access to the web server in an Ethernet based Anybus CompactCom.

 

APPLICABLE PRODUCTS

All Ethernet based Anybus CompactCom products

 

PRE-REQUISITES

Ethernet based Anybus CompactCom 30 / Anybus CompactCom 40

 

 

SOLUTION DESCRIPTION

You can restrict access to the web server in an Anybus CompactCom by means of user accounts. To do this, you simply need to add the web_accs.cfg file containing the various accounts (username:password) to the file system root.

 

This is an example content of such a file:

webadmin:webpassword
webuser1:webuserpw1
webuser2:webuserpw2

 

Note that, just like in case of the FTP server user account, you can also add the path to a file that contains the approved users.

 

 

To demonstrate the use of the file shown in the previous example, let's initialize our module to WAIT_PROCESS :

 

 

 

Next we simply copy the created web_accs.cfg file to the file system root.

 

 

After that, when we try to access the module's web server, we get prompted to enter our account credentials :

 

 

Let's enter the credentials for webadmin :
 
 
Entering the correct credential gives us access to the web server's interface of the module :