Welcome to My Blog

IT related tech tips since 2006

Login

Blog History

Free Web Application Firewall from CloudFlare

So I just saw a Youtube video about a DDOS attack and saw an article online about Cloudflare offering a free Web Application Firewall. What does a WAF do? You transfer for your DNS Zone management to Cloudflare It changes the IP Address of your website so that it...

Cannot connect to Debug Terminal in Unifi Controller

TLDR; Try a Different Browser If you click on a Unifi devices IP address in the Cloud Key or Unifi Controller or click on "Open terminal" under tools in the device pane it should open a browser based cli I just tried to connect using Firefox 97.0.1 and got "Connection...

wp-cli update – file rename error

I have a script that runs the wp cli to loop through and update the Wordpress themes, plugins & core for a number of sites. Each site has different linux user ownership. The problem I am seeing is an error message of Permission denied when running sudo -u $OWNER...

Modifying the WordPress sitemap.xml output

I use Wordpress for customer websites with the Divi theme and layouts however Wordpress is fundamentally a blogging platform so its sitemap.xml contains links to categories and users and you might not want to have those publicised and indexed by Google The following...

User crontab missing supplementary groups

Problem: You get access denied when running a script from your user crontab but not when running it interactively Cause: Your user is in the correct group when logged in but not for cron Resolution: Add the user to the correct group This is on Ubuntu 20.04 LTS How to...

Cheap and Cheerful Email Alerting from Your VPS

Quick and dirty email sending from a virtual server. (On Azure port 25 outbound is blocked so this works nicely sending to port 587) You will have to tweak your gmail account to use less secure auth and allow app passwords. Install the SSMTP package apt-get install...