Most web standards and connectivity features at Hostinger work out of the box on Web and Cloud hosting plans, since they’re client-side or standard server-level technologies rather than root-access requirements. CORS, AJAX, OpenSSL, cURL, and the core DNS record types are all available by default, while a few specific technologies — outgoing WebSocket connections only, and select Cloudflare services — come with narrower conditions. Each is covered individually below. For the specific resource limits of each plan type, see parameters and limits of hosting plans in Hostinger.
Is CORS supported at Hostinger?
Cross-Origin Resource Sharing (CORS) can be used on all Web and Cloud hosting plans.
To enable it, add the following lines to the website’s .htaccess file:
<IfModule mod_headers.c> Header set Access-Control-Allow-Origin "*" </IfModule>
If you don’t have an .htaccess file, you can easily create one and then add the lines to start using CORS.
In case you want to define the cross-origin headers in a PHP file, use the following code:
<?php
header("Access-Control-Allow-Headers: Authorization, Content-Type");
header("Access-Control-Allow-Origin: *");
header('content-type: application/json; charset=utf-8');
?>NOTE
-
For the resources to load properly, CORS needs to be added to the origin source
Is Cloudflare supported at Hostinger?
Cloudflare is a Content Delivery Network (CDN) and Distributed Denial of Service (DDoS) mitigation service that enhances the performance, security, and reliability of websites.
The following Cloudflare services are supported in all our hosting plans:
-
Cloudflare DNS: Manage your domain’s DNS records
-
Cloudflare CDN: A content delivery network that can improve the performance of your website
-
Cloudflare Firewall: Protect your website from attacks
-
Universal SSL: Free SSL/TLS protection and other premium encryption options.
As for the following Cloudflare services:
-
Cloudflare Workers: Serverless functions that run on Cloudflare’s edge network
-
Cloudflare Pages: A static site hosting service that uses Cloudflare Workers
-
Cloudflare Tunnel: A service that allows you to tunnel traffic from your local machine to Cloudflare’s edge network
-
Cloudflare Access: Restrict access to your website based on user identity
They are only supported on our VPS Hosting plans since they require root access to your server.
NOTE
- Only one CDN should be enabled at a time. If another CDN, such as Hostinger CDN, is already active, disable it before activating Cloudflare.
Can I use AJAX on my website at Hostinger?
AJAX is a set of web development techniques that use client-side web technologies to create asynchronous web applications.
Since AJAX is based on JavaScript, which is fully supported at Hostinger, it can be used without any issues.
Do you support OpenSSL at Hostinger?
OpenSSL is a software library for applications that secure communications over computer networks against eavesdropping or that need to verify the identity of the other party in a connection.
OpenSSL is supported by default on Hostinger’s servers.
Is cURL enabled at Hostinger?
cURL, short for Client for URLs, is a command-line tool and library for transferring data using URL (web addresses). It supports a wide range of protocols and it can be used for making HTTP requests to interact with web services and download files among other network-related tasks.
cURL provides a simple and powerful interface, allowing to specify various options and parameters. It is available on Linux, macOS, and Windows, and is also accessible through programming languages like PHP, Python, and JavaScript, where it can be used to make HTTP requests programmatically.
cURL is installed and enabled by default on all Web and Cloud hosting plans.
Are sockets supported at Hostinger?
A WebSocket is a communication protocol that allows constant two-way communication between a client (such as a web browser) and a server, enabling real-time data exchange. Some of the common uses are:
-
Real-time web applications such as live chat, online gaming, financial trading platforms, and collaborative tools
-
Live content updates, for example, social media notifications, live sports scores, or stock market updates
-
Interactive and dynamic web experiences. For instance, online collaborative editing tools, drawing applications, or virtual classrooms
For security reasons, our Web and Cloud hosting plans only allow for outgoing connections via WebSocket. That is, you can initiate a WebSocket request from your hosting to another server (eg., outside of Hostinger), and upon successful handshake, a dual communication channel is established. You can then send messages to the other server, and the server can respond asynchronously without issues.
If your application requires incoming connections as well as outgoing, you can consider a VPS plan, where you will have maximum configuration flexibility to adapt to your project
What DNS record types are supported at Hostinger?
Hostinger supports A, CNAME, MX, TXT, AAAA, NS, SRV, and CAA types of DNS records. You can find more details on the related articles below:
-
DNS Zone delegation by changing the NS records or nameservers
-
SSL-related: CAA Records
-
Service records: SRV
As well as a general guide on how to manage DNS records at Hostinger.
What ports are open at Hostinger?
At Hostinger servers, all outgoing ports are open, except 0 and 25. Here are the most commonly used ports that are open:
-
21: FTP
-
80: Web (HTTP)
-
443: Secured Web (HTTPS)
-
3306: MariaDB (database)
-
65002: SSH
For Web and Cloud hosting, the list corresponds exactly to the open ports. For security reasons, these settings are fixed and additional ports cannot be opened. Similarly, it is not possible to close any currently open ports.
If you want full control over your hosting ports, VPS hosting is the best solution for you.
Is traceroute enabled at Hostinger?
The traceroute command is a network diagnostic tool used to trace the path taken by packets from your device to a specified destination or host on the internet. It helps identify the route or path that data packets follow to reach their destination and shows the time taken for each hop (router or node) along the way.
In order to maintain security, stability, and fair resource allocation for all users on the our Web and Cloud hosting plans, traceroute is disabled.
If you require access traceroute, you might consider our VPS plans, where it is fully supported.
Is VPN available at Hostinger?
A Virtual Private Network (VPN) is a secure and encrypted connection over the internet between your device and a server. This connection routes your internet traffic through an encrypted tunnel, ensuring that your online activities, data transmissions, and communications are protected from external agents, including your internet service provider (ISP).
Due to technical and resource requirements, VPN is supported only on our VPS hosting – we have a pre-made template for you: Ubuntu 22.04 VPS template with OpenVPN. It will automatically install the Ubuntu operating system, along with OpenVPN.
As VPS is a self-managed hosting solution, you’ll have complete control over your server. This means you’ll be responsible for setting up and configuring your project. While it may require some expertise, the flexibility and control that VPS offers make it an ideal platform to set up a VPN server 🚀
Do hosting plans include dedicated IPs at Hostinger?
A dedicated IP address is an exclusive internet protocol (IP) assigned to a single hosting plan or server ‒ unlike shared IP addresses, which are used by multiple users at a time.
Dedicated IP addresses offer enhanced control and reliability compared to shared IP addresses. It can improve your website performance and email deliverability since you are not affected by the actions of other users.
All of our Cloud hosting, Agency Hosting and VPS hosting plans include a dedicated IP address.
Does Hostinger support POP3, IMAP, and SMTP?
Email protocol support depends on your hosting and email plan. See does Hostinger support POP3, IMAP, and SMTP for details.
Most of these web standards and connectivity features are enabled by default on Web and Cloud hosting plans without any extra configuration. The main exceptions are outgoing-only WebSocket connections and a handful of Cloudflare’s more advanced services — Workers, Pages, Tunnel, and Access — which require VPS Hosting for root access. Network-level features like open ports, traceroute, VPN access, and dedicated IPs vary by plan type, as detailed above.
Additional resources