cURL Error 7
Category: PHP
cURL is a command-line tool and application library used to transfer data to or from a server. It uses URL syntax, such as HTTP and HTTPS.
The cURL Error 7 error is caused when, for any reason, the curl request from your website is blocked by the Outgoing Connection firewall.
The Outgoing Connections are a feature developed to maximize the security of your websites and to prevent them from being abused by any third parties for hacking, spamming, or scamming purposes.
You can access it by going to:
- Advanced > Outgoing Connections on your web hosting control panel.
Managing Outgoing Connections
The Outgoing Connections can be disabled if you do not want to utilize its features. By default, it is enabled; however, it allows you to specify certain IP addresses or IP ranges to which your site(s) will be able to open outgoing connections.
Your website(s) could be allowed to open connections to both a specific IP Address or to a whole IP range.
To allow your website(s) to open an outgoing connection to a specific IP, you need to:
- Add that IP and the IP's mask to the list of allowed IPs.
- Press the Whitelist IP Address button and type the IP address in the IP/mask field of the form.
If you are not quite sure about the IP Address mask, contact your ISP for confirmation and assistance.
Specifying IP Ranges
To specify an entire IP range, you will need to add an IP from that range and then specify the range's network mask. To do that:
- First, select the Advanced level of experience option.
- Then you can choose a specific mask CIDR value (between 32 - 28) from the right-hand drop-down list.
Removing Allowed IPs
To remove an IP or an IP range from the Allowed IPs/IP ranges list, you need to:
- Tick off the checkbox for a particular line in the list.
- Press the Delete button at the bottom of the list.
Disabling Outgoing Connection Blocking
If for some reason you want to completely disable the Outgoing Connection blocking script, you need to:
- Press the Block Connections button.
Please note that setting the Outgoing Connections to Not Active status may result in a security risk.
Tags: allow connections, cURL error 7, data transfer, IP address, outgoing connection firewall, PHP, remove IPs, security risk, web hosting control panel, whitelist IP