Category: Webmaster Tools

Debian 10 Disable Tracker

This works. There are a lot of examples out there that don’t work. I found that an additional edit (bottom) made all the difference. These are the typical changes you’ll find online. https://gist.github.com/vancluever/d34b41eb77e6d077887c But here is the change that made all the difference for me. Edit all the tracker files and change X-GNOME-Autostart-enabled to False. re. sudo vi /etc/xdg/autostart/tracker-miner-apps.desktop X-GNOME-Autostart-enabled=false

How To Create A Blank Root For Apache Virtual Host?

If you don’t want Apache to serve the first Virtual Host when you get a request for the server IP. (because that is what is supposed to happen). If someone or somebot is attempting to see what is at the ip address, you can serve a blank page instead as follows: vi /etc/apache2/sites-available/000-default.conf Insert this VirtualHost at the top of...

How To Manage Fail2ban Using Perl Script On Remote Servers and A Control Mysql Database

Earlier I posted how to use a text file created by a script to similarly manage the rogue IPs that Fail2ban bans. The problem with using scripts and crontab is that it is not reporting in real-time. The method here works in real-time because Fail2ban reports directly to the MySQL on the control server. On each remote you’ll want to...

Fail2ban Mysql Database to Manage Persistent Bans

Step 1 Create Database and Tables in MySQL Add a “source” field for the server name if you want to use a remote database setup (and add it to the UNIQUE KEY).The UNIQUE KEY prevents duplicates of course. But this means you can refresh the perl script without handling duplicates there which would complicate things considerably. CREATE TABLE iptable (...

Padre Still Crashes on Debian Linux

The linked post was written in 2012 explaining what I think most users of Padre encounter, and therefore I won’t repeat anything already nicely documented there except to quote “And please do not feed me a junk line about it works on my Linux distribution, I do not care. Pretend I am a normal end user for a moment. If...

Find and Kill All Processes One Liner

Brilliant – where you need it – like when you accidentally try to open 8000 html files at once with your browser. sudo kill $(ps aux | grep ‘iceweasel’ | awk ‘{print $2}’) credit for Find and Kill All Processes One Liner – bash using grep and awk

How To Create and Embed an Email Link

<a href=”mailto:simone@the-forest.com?subject=Short Notice&body=Hi Simone, I’m arriving in less than 48 hours.”>Email Me</a> optional are (?) subject=Short Notice body=Hi Simone, I’m arriving in less than 48 hours. Minimum <a href=”mailto:simone@the-forest.com”>Email Me</a>

htaccess force SSL for WordPress

This works for me on Apache 2.2 with VirturalHosts. Plus other useful stuff here. <IfModule mod_rewrite.c> RewriteEngine On Options -Indexes Options +FollowSymLinks RewriteBase / # Force HTTPS RewriteCond %{HTTPS} off RewriteRule (.*) https://%{HTTP_HOST}/$1 [L] # Deny access by your most hated visitors and bad bots RewriteCond %{HTTP_USER_AGENT} mechanize [NC,OR] # Protect against SQL INJECTION RewriteCond %{QUERY_STRING} (\<|%3C).*script.*(\>|%3E) [OR] RewriteCond %{QUERY_STRING}...

Virus and Trojan Advice

Install more than 1 browser on your computer. 3 is ideal. Only read email with one (Iceweasel is my preferred) and only THAT ONE. On THAT ONE install the plugins: HTTPS Everywhere No Script (don’t enable any suspect websites to run scripts) Click&Clean (use it) Dont open email that you are not certain it is safe. If it comes from...

fail2ban.actions.action: ERROR iptables -D

fail2ban.actions.action: ERROR iptables -D INPUT -p tcp -m multiport –dports http,https -j fail2ban-apache-xxxxxxxxxxxxxxxxxxx iptables -F fail2ban-apache-xxxxxxxxxxxxxxxxxxx iptables -X fail2ban-apache-xxxxxxxxxxxxxxxxxxx returned 200 iptables only allows rules of up to 30 characters Shorten the name of the conf file solves the error

Top Network Monitor Tools

Install iftop sudo apt-get install iftop sudo iftop -n Install iptraf sudo apt-get install iptraf sudo iptraf Install Netdiag sudo apt-get install netdiag sudo netwatch -e eth0 -nt Install Nload sudo apt-get install nload Nload Install NetHogs sudo yum install nethogs -y sudo nethogs Install Bmon sudo apt-get install bmon bmon Install TCPTrack sudo apt-get install tcptrack

Start Reverse Tunnel on boot using autossh for Debian 7

As usual, most of the how-to guides out there are too brief (I’m guilty) or apply to other distros: This works on Linux Debian 7 all-around, and this is a complete how to. It works. You just have to follow a very long thread. No A.D.D. here! We will create a Persistent Reverse SSH Tunnel between 2 machines using autossh....