Block bad bots in .htaccess file in cPanel / WordPress / Apache

Add below code in .htaccess file RewriteEngine On RewriteCond %{HTTP_USER_AGENT} ^.*(adscanner|AhrefsBot|archive.org_bot|Baiduspider|BehloolBot|bingbot|BLEXBot|coccocbot-image|coccocbot-web|compatible|contxbot|DotBot|DuckDuckGo-Favicons-Bot|DuckDuckBot|Exabot|facebot|facebookexternalhit|Slurp|GrapeshotCrawler|houzzbot|MJ12bot|MojeekBot|Nimbostratus-Bot|PaperLiBot|PlurkBot|Seekport|SemrushBot|SEOkicks|SeznamBot|stagefright|SurdotlyBot|Sogou|TinEye-bot|YaK|YandexBot|YandexImages).*$ [NC] RewriteRule .* – [F,L] List of Bots which you have just blocked adscanner AhrefsBot archive.org_bot Baiduspider BehloolBot bingbot BLEXBot coccocbot-image coccocbot-web contxbot DotBot DuckDuckGo-Favicons-Bot DuckDuckBot Exabot Slurp GrapeshotCrawler houzzbot MJ12bot MojeekBot Nimbostratus-Bot PaperLiBot PlurkBot Seekport SemrushBot SEOkicks SeznamBot stagefright SurdotlyBot Sogou TinEye-bot YandexBot YandexImages Exabot istellabot

[Solved] R1soft build module issue for CentOS kernel 4.4.112 – hcpdriver-cki-4.4.112-1.el6_.elrepo.x86_64.ko

Solution:- Download this kernel and install it then reboot to make it active. Kernel wget Module wget Unzip the module file Place module here /lib/modules/r1soft/ then create a symlink to it having name hcpdriver.o Like this. ll /lib/modules/r1soft/ total 128 -rw——- 1 root root 124190 Jan 19 2018 hcpdriver-cki-4.4.112-1.el6.elrepo.x86_64.ko lrwxrwxrwx 1 root root 64 May 28 09:16 hcpdriver.o -> /lib/modules/r1soft/hcpdriver-cki-4.4.112-1.el6.elrepo.x86_64.ko Restart cdp service. Check module hcp -l  …

Install Kernel kernel-lt-4.4.180-2.el7.elrepo.x86_64 on CentOS without repo

mkdir kernel-lt-4.4.180 ; cd kernel-lt-4.4.180 wget yum install -y kernel*

Let’s Encrypt on CentOS 6/7 with Nginx/Apache

yum -y install yum-utils yum install certbot -y certbot certonly -d -d –dry-run –webroot –renew-by-default -w /home/the-d2/public_html –authenticator webroot Now in the output you will see the geenrated certs path, use them in your virtualhost and reload the webserver nignx / apache Setup renewel Cron:- certbot certonly -d -d –webroot –renew-by-default -w /home/the-d2/public_html –authenticator webroot

Install MySQL 5.7 On CentOS via Ansible Playbook

– name: Install MySQL hosts: test123 become: true become_user: root gather_facts: true tasks: – name: “Installing Repo & Packages” yum: name= – name: Install MySQL 5.7 yum: pkg={{ item }} with_items: – mysql-community-server – mysql-community-client