Accéder au contenu principal

Articles

Affichage des articles du avril, 2019

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