burger
infomaniak
infomaniak
cloud-computing-logo
Cloud Computing
web-domain-logo
Web & Domains
event-marketing-logo
Events & Marketing
  • Our products
    • Collaborative tools icon chevron
    • Web & Domains icon chevron
    • Cloud Computing icon chevron
    • Events & Marketing icon chevron
    • Streaming icon chevron

      ksuiteCollaborative suite

      Discover the collaborative suite → Discover →
    • kSuite Professional email, sovereign cloud and AI for sustainable performance
    • kSuite The suite for secure communication, storage and sharing
    • kdrive
      kDrive Store, collaborate and share your files
    • mail service
      Mail Service Create your email addresses with your domain
    • kChat
      kChat Communicate live with your teams
    • kmeet
      kMeet Organise your meetings online in complete security
    • swisstransfer
      SwissTransfer Send your files up to 50 GB free of charge.
    • kpaste
      kPaste Share and encrypt your sensitive information
    • ksuite
      Custom Brand Control the brand image of your products
    • kChat
      Chk Link reducer & QR code generator
      Find the web hosting solution you need
    • Domain name
      Domain name Reserve your domain name at the best price
    • Site Creator
      Site Creator Create your website with ease
    • web hosting
      Web Hosting Create your website with over 100 CMS
    • web hosting
      Wordpress Hosting Create your WordPress website easily
    • Cloud Server
      Cloud Server Power up your sites with guaranteed resources
    • Node.js Hosting Create a dynamic, interactive site with Node.js
    • SSL Certificat
      SSL certificates Secure your websites with an EV or DV certificate
    • Options
    • Domain privacy
      Domain Privacy Protect your domains’ private data
    • DNS Fast Anycast
      FastAnycast DNS Speed up your site access times
    • Dyn DNS
      DynDNS Access your devices remotely
    • Dyn DNS
      Renewal Warranty Secure your domains against loss and theft
      Find the right Cloud Computing solution

      Cloud services

    • public cloud
      Public Cloud (IaaS) Create your projects in a high-end, ultra-competitive Cloud
    • Cloud Server
      VPS Cloud Create a Windows / Linux server
    • Kubernetes service Deploy your containerised apps on a large scale.
    • VPS Lite
      VPS Lite Create a Windows/Linux server at a low cost
    • Database Service Manage your databases with a managed solution
    • jelastic cloud
      Jelastic Cloud (PaaS) Create your own customised environments
    • Other services

    • llm api
      AI Tools Boost your productivity with our sovereign AI
    • swiss backup
      Swiss Backup Back up your devices in the Cloud
    • nas synology
      NAS Synology Rent a NAS in our secure data centers
    • High availibility
      Very High Availability Create a multi-data center infrastructure with customised SLAs
    • Housing
      Housing Install your servers in our data centers
    • Auth Add a privacy-friendly login method to your apps
      Infomaniak Events, the independent local events portal
      Online ticketing service with a wide choice of concerts, shows and events.
    • online shop
      Ticketing Create your ticketing service and sell tickets
    • kdrive
      Access Control Control access to your events with ease
    • kdrive
      Guest manager Automate your event invitations
    • kdrive
      Newsletter Send your newsletters at competitive prices
    • Streaming radio
      Streaming radio Create and broadcast your own live radio station online
    • streaming video
      Video-Streaming Create and broadcast live events and TV online
    • VOD and AOD
      VOD & AOD service Host and broadcast your recordings without limits
  • Resources
    documentation icon Documentation
    Guides & tutorials
    API documentation
    special offers icon Special offers
    Get started for free
    Student programme
    Become an affiliate
    partner program icon Partner programme
    Find a partner
    Become a partner
    support icon Support & contact
    Contact Support
    Premium support - 24/7
    Contact our sales department
    Hiring an expert
    Migrate to Infomaniak
  • About us
    forest
    icon Ecological commitment
    We pollute. But we are taking action to reduce the footprint of our services and infrastructure
    Discover our commitment →
    icon About Infomaniak
    Our vision, our values
    Our teams
    Infomaniak is recruiting
    Press and communication
    Blog and news
    icon Security
    Data confidentiality
    Bug Bounty Programme
  • Get started for free
    Sign in
  • search-icon
    close-icon
      icon

      Would your needs exceed our solutions? To find out, contact us so that we can advise you personally.

      Our flagship products:
  • search-icon
  • Get started for free
    Sign in
Price Price

Knowledge base

1000 FAQs, 500 tutorials and explanatory videos. Here, there are only solutions!

Knowledge base FAQ - Knowledge base Page 16/1
    10 FAQ(s) found
    Secure Web access via .htaccess rules

    This guide explains how to block access to certain directories of a Web Hosting for certain visitors / robots / crawlers by filtering and blocking their IP addresses or hostnames.

     

    Implement .htaccess rules

    Create a document .htaccess at the root of your site and enter the rules intended to block certain IP addresses or bots.

     

    To block visitors based on, for example, the beginning of their IP address, use the directive "deny from":

    Order Deny,Allow
    Deny from 123.456.
    Allow from all

    This means that all requests from an IP address starting with "123.456." will be denied, while all other requests will be allowed. Blocked users will receive an HTTP 403 Forbidden error message.

    Block a specific IP address

    Order Allow,Deny
    Deny from 123.456.789
    Allow from all

    This means that only one IP address, 123.456.789, is blocked and all other IP addresses can access the site.

    Blocking multiple IP addresses

    Order Allow,Deny
    Deny from 123.456.789
    Deny from 987.654.321
    Allow from all

    This means that two IP addresses, 123.456.789 and 987.654.321, are blocked and all other IP addresses can access the site.

    Block a bot by its user-agent

    SetEnvIfNoCase User-Agent "BadBot" BadBot
    Order Allow,Deny
    Deny from env=BadBot
    Allow from all

    This means that any bot identified with a user-agent "BadBot" will be blocked and all other users can access the site.

    Block access to a specific folder

    Order Allow,Deny
    Deny from all

    This means that all access to the folder "/folder" will be blocked, regardless of the IP address or user-agent. A similar assistant is available on your Infomaniak Manager.

     

    mod_rewrite directives

    You can also use the mod_rewrite directive to block certain IP addresses or bots in a .htaccess file.

     
    The directive mod_rewrite can affect the performance of your website in case of excessive or incorrect use. It is therefore recommended to be cautious when modifying your file .htaccess.

    Here are some examples:

    Block a specific IP address

    RewriteEngine on
    RewriteCond %{REMOTE_ADDR} ^123\.456\.789\.
    RewriteRule ^(.*)$ - [F,L]

    This means that only one IP address, 123.456.789, is blocked and all other IP addresses can access the site.

    Block several IP addresses

    RewriteEngine on
    RewriteCond %{REMOTE_ADDR} ^123\.456\.789\. [OR]
    RewriteCond %{REMOTE_ADDR} ^987\.654\.321\.
    RewriteRule ^(.*)$ - [F,L]

    This means that two IP addresses, 123.456.789 and 987.654.321, are blocked and all other IP addresses can access the site.

    Block a bot by its user-agent

    RewriteEngine on
    RewriteCond %{HTTP_USER_AGENT} BadBot [NC]
    RewriteRule ^(.*)$ - [F,L]

    This means that any bot identified with a user-agent "BadBot" will be blocked and all other users can access the site. This can be useful to prevent unwanted robots from accessing certain pages or consuming resources unnecessarily.

    Block access to a specific folder

    RewriteEngine on
    RewriteRule ^dossier/secret - [F,L]

    This means that all access to the folder "/dossier/secret" will be blocked, regardless of the IP address or user-agent.

    Block and redirect elsewhere

    RewriteEngine On
    RewriteCond %{REMOTE_ADDR} ^123\.456\.789\.
    RewriteRule ^(.*)$ http://www.domain.xyz/blocked.html [L,R=301]

    This means that all requests from the IP address 123.456.789 will be redirected to the page "blocked.html" on the site "www.domain.xyz". The last part of the line RewriteRule, [L,R=301] indicates that the redirection is permanent (R=301) and that this is the last rule to be applied (L).

    You can add multiple conditions RewriteCond to block different IP addresses and redirect to different pages.

    Also, refer to this other guide.



    Link to this FAQ:
    Has this FAQ been helpful?
    Thank you for your feedback. Improve this FAQ?
    Please do not ask any questions through this form, it is only used to improve our FAQ.
    Please use our contact form for any question.
    Your message has been sent. Thank you for suggesting an improvement to this FAQ.
    Resolve an FTP / website blockage

    This guide explains why an FTP account (and most of the time Web Hosting as well) can suddenly become blocked.

     

    Preamble

    • Infomaniak uses an antivirus solution on all shared servers to combat the sending of viruses via FTP and scripts.
    • The antivirus allows to detect:
      • possible FTP account hacks
      • the voluntary or involuntary sending of files (WordPress themes, fraudulent modules, etc.) containing malicious code lines or inclusions

     

    Malicious file detection

    The antivirus scans all files sent under 1 MB to prevent any upload of viruses/spam scripts/etc.

    In case of detection of a suspicious element, the password of the FTP account is automatically changed and the incriminated files on the server are locked (FTPban).

    The FTP server then sends a message to the FTP client of the type

    550 Virus Detected and Removed: botnet.infomaniak.5.UNOFFICIAL

    or

    550 Virus Detected and Removed: winnow.botnet.ff.trojans.15900.UNOFFICIAL

     

    What to do if the account is blocked?

    If your FTP account is suddenly blocked, you will receive an email; follow the procedure indicated therein to unlock the situation. In particular:

    • Clean your site and analyze what you intended to upload to the server.
    • Check if the web applications and CMS you are using are up-to-date:
      • The cause of most hacks comes from a security deficiency in outdated web applications or weak passwords.

     

    Solve the problem definitively

    To prevent your site from being hacked and blocked again, perform the following actions:

    Under no circumstances republish the same contaminated files on your hosting, as the site would be blocked again.

    • Update the web applications (WordPress, Joomla, etc.) and the extensions used.
    • Delete unused web applications.
    • Change the password for all your FTP accounts.
    • Change the passwords to access the web applications (WordPress, Joomla, etc.).
    • Change the password for MySQL database users.
    • Delete the users of the MySQL databases that you do not use.
    • Use a different, complex password each time, with a minimum of 8 characters.
    • Run a manual antivirus scan on your hosting.
    • Install and use an up-to-date antivirus (regardless of the operating system).
    • Refer to this other guide if you are looking for information on monitoring and resolving vulnerabilities in hosted scripts.

    If your site does not work after cleaning, it may be necessary to replace some deleted files with healthy ones.

    Make your life easier! If needed, local partners recommended by Infomaniak can handle these tasks. Launch a free tender. They take care of everything, freeing you from the technical details.



    Link to this FAQ:
    Has this FAQ been helpful?
    Thank you for your feedback. Improve this FAQ?
    Please do not ask any questions through this form, it is only used to improve our FAQ.
    Please use our contact form for any question.
    Your message has been sent. Thank you for suggesting an improvement to this FAQ.
    Uninstall an SSL certificate

    This guide explains how to uninstall an SSL Certificate regardless of its type, initially installed from the Infomaniak Manager. If your certificate is a paid type and you wish to cancel the current offer instead, refer to this other guide.

     

    Remove an SSL Certificate

    To uninstall an Infomaniak certificate:

    1. Click here to access the management of your product on the Manager Infomaniak (need help?).
    2. Click directly on the name assigned to the product in question:
    3. Click on the action menu ⋮ located to the right of the relevant item.
    4. Click on Uninstall:
    5. Confirm the uninstallation of the certificate.


    Link to this FAQ:
    Has this FAQ been helpful?
    Thank you for your feedback. Improve this FAQ?
    Please do not ask any questions through this form, it is only used to improve our FAQ.
    Please use our contact form for any question.
    Your message has been sent. Thank you for suggesting an improvement to this FAQ.
    Using Views, Triggers, Stored Procedures and Routines

    This guide details the features available for managing relational databases on hosting.

     

    Use of Views, Triggers, Stored Procedures and Routines

    Regarding the management of relational databases, the views ("views") feature is available by default, allowing users to create views to simplify data management and presentation.

    However, some advanced features, such as…

    • “triggers”
    • stored procedures
    • routines
    • and the creation of functions

    … are only available on Cloud Servers.

    These features allow for more precise and complex data manipulation, but they are not allowed on shared servers. This restriction is mainly due to potential risks to the stability of the infrastructure. Poor configuration or excessive use of these features could create infinite loops or significant overloads, affecting not only the performance of the server in question, but also the experience of all clients hosted on the same infrastructure.



    Link to this FAQ:
    Has this FAQ been helpful?
    Thank you for your feedback. Improve this FAQ?
    Please do not ask any questions through this form, it is only used to improve our FAQ.
    Please use our contact form for any question.
    Your message has been sent. Thank you for suggesting an improvement to this FAQ.
    Resolve an interruption between Joomla and the database

    This guide details the error "Database connection error: could not connect to mysql" which may occur during modifications around an Infomaniak hosting on which the Web app Joomla is installed.

     

    Preamble

    • To get the site working again, you need to check and update certain information in the Joomla configuration.php file:
      1. The name of the MySQL database — this is often a prefix that has been added in front of the existing database name and the username (for example bddname before, abcd_bddname after).
      2. The MySQL database host server (for example mysql.domain.xyz before, abcd.myd.infomaniak.com after).
      3. The username that accesses the MySQL database (for example userbdd before, abcd_userbdd after).
      4. The path of two directories /tmp and /logs:

     

    Get the updated information

    For points 1, 2 and 3 above:

    1. Click here to access the management of your product on the Infomaniak Manager (need help?).
    2. Click directly on the name assigned to the concerned product.
    3. Click on Database in the left sidebar.
    4. Find and keep your current MySQL information (need help?).

    For point 4 in the preamble above:

    1. Click here to access the management of your product on the Infomaniak Manager (need help?).
    2. Click directly on the name assigned to the product in question.
    3. Click on Manage under Advanced settings:
    4. Under the PHP | Apache tab, under PHP Information click on Display Information.
    5. On the line _SERVER['DOCUMENT_ROOT'] copy the path to the right:

     

    Modify the Joomla configuration.php file

    Prerequisites

    • Create an FTP account (need help?).
    • Log in via FTP (need help?).

    Then edit the file configuration.php which is located in the root folder of your Joomla:

    1. Find the relevant paragraph and update the 4 pieces of information from the preamble above.
    2. Also replace the old path (including "www") with the new path:
       
    3. Save the file; your Joomla will now connect to the correct database.

     

    Check the changes made

    On the Joomla interface, it is possible to check the paths of the folders /logs and /tmp:

    • For the /logs folder: go to System / Configuration then System
    • For the /tmp folder: go to System / Configuration then Server


    Updated 26.06.2025 Link to this FAQ:
    Has this FAQ been helpful?
    Thank you for your feedback. Improve this FAQ?
    Please do not ask any questions through this form, it is only used to improve our FAQ.
    Please use our contact form for any question.
    Your message has been sent. Thank you for suggesting an improvement to this FAQ.
    Remove a site from web hosting

    This guide explains how to delete a site from a Web Hosting.

     

    Introduction

    • Once removed, the site will no longer appear on the Internet at its previous URL.
    • The quota of sites available on your hosting will regain a free slot.

     

    Removing a site from a paid Web Hosting

    To access Web Hosting to remove a site:

    1. Click here to access the management of your product on the Infomaniak Manager (need help?).
    2. Click directly on the name assigned to the relevant product.
    3. Click on the action menu ⋮ to the right of the relevant item in the displayed table.
    4. Click on Remove the site:

     

    Unlinking a site from a free Starter hosting

    A Starter hosting (basic web page) contains only one site that is specific to the domain name itself. Therefore, unlike paid offers, it is not possible to have multiple sites or remove one site to add another.

    You can however follow the procedure above and a warning will offer you the termination of your Starter hosting:

     

    You can also directly cancel the Starter hosting:

    • This will only terminate your Starter Web hosting product, meaning the part concerning your website without affecting other products, email or domain name for example.
    • You will need to confirm the cancellation request by email, otherwise no data will be deleted.
    • A cancellation confirmation is sent to any other administrators of the Organization.
    • Backups will be permanently deleted upon cancellation, making any restoration impossible.

    To cancel:

    1. Click here to access the management of your product on the Infomaniak Manager (need help?).
    2. Click on the action menu ⋮ located to the right of the relevant item.
    3. Select the Terminate option:
    4. Follow the procedure to the end.


    Link to this FAQ:
    Has this FAQ been helpful?
    Thank you for your feedback. Improve this FAQ?
    Please do not ask any questions through this form, it is only used to improve our FAQ.
    Please use our contact form for any question.
    Your message has been sent. Thank you for suggesting an improvement to this FAQ.
    Understand the connection durations to MySQL / MariaDB

    This guide concerns the connection time limits for MySQL databases on Infomaniak Web Hosting in the context of a Web application using PHP to interact with the database.

     

    MySQL database connection time

    Limited to 30 real seconds

    This means that when a connection is established between the PHP application and the MySQL database, it has 30 seconds to perform all necessary operations before the connection is automatically closed by the MySQL server.

    This limit is generally set in the MySQL server configuration and can be adjusted according to the specific needs of the application.

     

    PHP CPU time

    Limited to 10 seconds

    This limit refers to the CPU time allocated to the execution of PHP scripts on the server; when a PHP script is executed, the web server allocates a certain amount of CPU time to process this script... so if the script takes more than 10 seconds to execute, it will be automatically interrupted by the web server to avoid excessive consumption of the server's resources.

     

    By combining these two limits, this means that for any operation involving a connection to a MySQL database from PHP, the application has 30 real seconds to establish the connection, execute queries, and process results, while respecting the 10 seconds of CPU time allocated to the execution of the PHP script.

    If an operation exceeds one of these limits, it may be interrupted by the MySQL server or the web server, depending on the case, which can result in errors or unexpected behavior in the application.



    Link to this FAQ:
    Has this FAQ been helpful?
    Thank you for your feedback. Improve this FAQ?
    Please do not ask any questions through this form, it is only used to improve our FAQ.
    Please use our contact form for any question.
    Your message has been sent. Thank you for suggesting an improvement to this FAQ.
    Transfer data between servers (FXP)

    This guide explains how to securely and easily transfer files between Web Hosting and/or Cloud Server.

     

    Preamble

    • The FXP (File Exchange Protocolis a method for transferring files directly between two FTP servers without the data passing through the local client.
    • Using the FTP PORT and PASV commands, it allows for a connection to be established between the two servers for faster and more efficient file transfer, thus saving bandwidth.
    • However, this method may present security risks if the connections are not secured by FTPS, and it requires a more complex configuration compared to traditional FTP transfers.

     

    Transferring data between servers

    FXP is enabled by default on Serveurs Cloud and hébergements Web (excluding Starter).

    For example, you can use CrossFTP, a multi-platform software that allows you to perform FXP (as well as FTP, SFTP, WebDav, S3, OpenStack Swift).



    Link to this FAQ:
    Has this FAQ been helpful?
    Thank you for your feedback. Improve this FAQ?
    Please do not ask any questions through this form, it is only used to improve our FAQ.
    Please use our contact form for any question.
    Your message has been sent. Thank you for suggesting an improvement to this FAQ.
    Change the password of a Web Application

    This guide explains how to change the WordPress management password or any other Web application (Joomla, Drupal, Typo3, PrestaShop, ownCloud, etc.) installed via Infomaniak tools included in the offersWeb hosting paid.

     

    Preamble

    • Some applications also allow a change of user password directly from their dedicated interface:
      • Example: WordPress (manage users, names, passwords, roles, etc.).

     

    Change the password of a Web app

    To change the password to the administration panel of your web application, perform the following actions:

    1. Click here in order to access the management of your product on the Manager Infomaniak (Need help?).
    2. Click directly on the nameallocated to the product concerned:
    3. Click on the action menu ⋮ located to the right of the relevant Web Application.
    4. Click on Parameters of the application:
    5. Click on Edit to the right of the Application:
    6. Under Password Enter the new password (for connection to the identifier indicated above):
    7. Click on the button Save at the bottom of the page.


    Link to this FAQ:
    Has this FAQ been helpful?
    Thank you for your feedback. Improve this FAQ?
    Please do not ask any questions through this form, it is only used to improve our FAQ.
    Please use our contact form for any question.
    Your message has been sent. Thank you for suggesting an improvement to this FAQ.
    Manage the advanced PHP functions of a web hosting service

    This guide explains how to enable the following functions on Web Hosting (in italics, Cloud Server only):

    • proc_open
    • popen
    • exec()
    • shell_exec()
    • set_time_limit
    • passthru
    • system

     

    These functions are disabled by default as they pose a significant security risk in case of a website hack. Only enable them if absolutely necessary (for a script or CMS such as ImageMagick, Typo3, CraftCMS, etc.).

     

    Enable PHP functions

    To access website management:

    1. Click here to access the management of your product on the Infomaniak Manager (need help?).
    2. Click directly on the name assigned to the relevant product:
    3. Click on Manage under Advanced Settings:
    4. Click on the PHP / Apache tab.
    5. Click on the toggle switches On/Off as desired:
    6. Click on the Save button to confirm the changes.


    Link to this FAQ:
    Has this FAQ been helpful?
    Thank you for your feedback. Improve this FAQ?
    Please do not ask any questions through this form, it is only used to improve our FAQ.
    Please use our contact form for any question.
    Your message has been sent. Thank you for suggesting an improvement to this FAQ.
    Display more results If you cannot find an answer, contact us
    logo infomaniak
    Prices do not include VAT
    facebook
    twitter
    linkedin
    instagram

    Infomaniak

    About Infomaniak The team Infomaniak is recruiting Press space Infomaniak blog All certificates Products and offers Clients' opinions

    Support

    Assistance 7/7 FAQ and guides Premium Support Sales contact API REST Report abuse WHOIS Statuts Public Cloud Service status

    Partnerships

    Become a reseller Affiliate programme Directory of partners Requests for quotes

    Ecology

    Green hosting Certificates & awards

    Follow our development

    The email entered is invalid
    earth icon
    • EN
      • EN
      • DE
      • ES
      • FR
      • IT
    ©2025 Infomaniak - Legal documents - Legal notice - Data Protection - Privacy Policy - Site map - Manage your cookies
    bcorp-logo
    icann-logo
    swiss
    new-iso
    swiss-hosting
    logo infomaniak
    Prices do not include VAT

    Infomaniak

    About Infomaniak The team Infomaniak is recruiting Press and media Infomaniak blog All certificates Products and offers Clients' opinions

    Support

    Assistance 7/7 FAQ and guides Premium Support offer Sales contact API REST Report abuse WHOIS Statuts Public Cloud Service status

    Partnerships

    Become a reseller Affiliate programme Directory of partners Requests for quotes

    Ecology

    Green hosting Certificates & awards

    Follow our development

    The email entered is invalid
    bcorp-logo
    icann-logo
    swiss
    new-iso
    swiss-hosting

    facebook
    twitter
    linkedin
    instagram
    ©2025 Infomaniak
    Contracts - Legal notice - Data Protection - Privacy Policy - Site map - Manage your cookies

    Managers

    earth icon
    • EN
      • EN
      • DE
      • ES
      • FR
      • IT
    Your browser is outdated, security and browsability are no longer guaranteed. We recommend that you update it as soon as possible by clicking here.