Posts for: #How-To

Blocking Ads Tracking and Malware on Android With Blokada

Internet discoveries!!1

I have recently discovered Blokada on F-Droid which is an advertisement, tracking and malware blocker for Android.

This app helps protecting your privacy as well as your nerves.

It’s incredibly simple to set up, open source and can be downloaded in F-Droid as well as over the website.

Here is a link to the GitHub repository.

Why would I need that?

As I see it and while the practice of tracking users has become a widespread standard for websites, not everyone wants to give up this part of privacy.

Read more

Force Ssl Redirect With Apache2

The easiest way to permanently redirect (301), when dealing with apache2 that is, would be these three lines of code below:

RewriteEngine On 
RewriteCond %{HTTPS} off 
RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI} [R=301,L]

The way this works in NGINX is just as easy:

server_name git.server.com; 
## Don't show the nginx version number, a security best practice 
server_tokens off; 
location / {
	return 301 https://git.server.com:443$request_uri;
}
Read more

A Linux Commands Overview

Some useful terminal commands in Linux or OSX

-> List all cronjobs from all users and services (all existing)

for user in $(cut -f1 d: /etc/passwd); do crontab -u $user -l; done

-> For all users and services in /etc/passwd

for user in $(cut -f1 -d: /etc/passwd); do echo $user; crontab -u $user -l; done

-> A nicer list for each user in /etc/passwd

-> Find and delete 10 days old files in /tmp

find /tmp -ctime +10 -exec rm -rf {} +

-> Zip and Tar over SSH compression

Read more