Accéder au contenu principal

Articles

Blocking countries using ipset via iptables

This script will block the specific countries you've asked of it to block. #!/bin/sh #Block specific countries from hitting your server (CentOS) #Install ipset if you dont have it yum install ipset -y #Countries to block #china, france, germany, russian federation, united arab emirates #Create the initial rules in ipset based on hast:net for a in {china,france,germany,russia,uae,canada,australia}; do ipset -N $a hash:net; done #Download the necessary files from ipdeny wget -P . http://www.ipdeny.com/ipblocks/data/countries/cn.zone wget -P . http://www.ipdeny.com/ipblocks/data/countries/fr.zone wget -P . http://www.ipdeny.com/ipblocks/data/countries/de.zone wget -P . http://www.ipdeny.com/ipblocks/data/countries/ru.zone wget -P . http://www.ipdeny.com/ipblocks/data/countries/ae.zone wget -P . http://www.ipdeny.com/ipblocks/data/countries/ca.zone wget -P . http://www.ipdeny.com/ipblocks/data/countries/au.zone #Add each IP address from the downloaded list in...

Error illegal or invalid mime type - JOOMLA

Login to your Joomla Backend. Go to The System Menu and select Global Configuration. Under the component menus, select Media. In the Media Section, scroll to Ignored Extensions Type in the following text highlighted in red    application/pdf,pdf,txt,text/plain Save your settings and you will be able to upload your pdf and text files again easily

PostgreSQL in WHM

Our documentation page here has the steps you need to take in order to install PostgreSQL on the machine: https://documentation.cpanel.net/display/CKB/Install+or+Update+PostgreSQL+on+Your+cPanel+Server#InstallorUpdatePostgreSQLonYourcPanelServer-InstallorupgradeandconfigurePostgreSQL This can be run in unison with MySQL for any PHP applications hosted on the server.

WHMCS, Ajouter le .dz

includes/whoisservers.php   dans le répertoire includes vous ajoute cette ligne en dernier  .dz| whois.nic.dz |NO OBJECT FOUND!  . com.dz | whois.nic.dz |NO OBJECT FOUND!  . net.dz | whois.nic.dz |NO OBJECT FOUND!  WHMCS7   https://docs.whmcs.com/WHOIS_Servers#Customising_WHOIS_Servers [     {         "extensions": ".dz",         "uri": "socket://whois.nic.dz",         "available": "NO OBJECT FOUND!"     } ] Comment ajouter un nouveau menu /admin/tempalte/blend/menu.tpl <li><a target="_blank" href="********************">Nom du menu</a></li>

user/process is causing bandwidth spikes WHM

I highly suggest starting with the tools I provided in an earlier response. You do have a few accounts that had higher bandwidth totals for the month. I suggest reviewing those accounts bandwidth usage in their respective cPanel accounts (cPanel >> Home >> Metrics >> Bandwidth). Another tool that may be useful would be AWStats, though this is assuming the bandwidth spike is caused by web traffic. I would also like to clarify that only certain bandwidth information is logged and the list can be found at: https://documentation.cpanel.net/display/74Docs/Bandwidth#Bandwidth-Non-recordedbandwidthinformation If the cPanel and/or WHM Bandwidth tools do not offer you the information you require, you will need to find a third-party tool to find this information. As a courtesy, I found some external resources that may assist you with finding which user/process is causing bandwidth spikes: https://www.slashroot.in/find-network-traffic-and-bandwidth-usage-process-linux https://a...

nom de domaine avec é

Hello, Thanks for your patience in this matter. When adding a domain with accented characters, it is necessary to use the 'puny code' version of them. This is to allow cPanel to 'understand' them. The screenshot attached shows the unformatted domain is invalid. You can find the 'puny code' version of the domain by converting it using this third-party page: https://www.punycoder.com/ Or you can use the domain registrar's information: # whois agro-ingénierie.com Domain Name: xn--agro-ingnierie-ikb.com <- converted name Please use the domain name, and you should be able to continue. Let us know if you have any questions. --

WHM Limit bandwidth

You can limit the account's total bandwidth in your server's WHM on the WHM >> Home >> Account Functions >> Limit Bandwidth Usage page. You can read about the Limit Bandwidth Usage function here: https://documentation.cpanel.net/display/72Docs/Limit+Bandwidth+Usage Note that this function does not provide a mechanism for rate-limiting bandwidth or for connections to a site. You may therefore wish to investigate a custom mod_security configuration, such as the one outlined here: https://johnleach.co.uk/words/2012/05/15/rate-limiting-with-apache-and-mod-security/ Alternatively, you may wish to install a third-party firewall such as CSF/LFD, which may have more granular rate-limiting functionality. You can read about CSF/LFD here: https://www.configserver.com/cp/csf.html