Linux Tutorial | Matt Cooper - Open Source Support
Linux Tutorial | Matt Cooper - Open Source Support
Debian Tutorial

Block an IP address with iptables

The syntax is as follows:

iptables -A INPUT -s IP-ADDRESS -j DROP

e.g.

iptables -A INPUT -s 84.94.83.02 -j DROP

March 24, 2016by Matt Cooper
FacebookTwitterPinterestGoogle +Stumbleupon
Google Analytics

Track a Link as an Event – Google Analytics

1. Build the tracking code for the link using RavenTools form:

http://raventools.com/gaconfig/google-analytics-event-tracking/general-event/

2. Insert the tracking code into your link e.g.

<a href=”http://bigapple.com/login” onClick=”ga(‘send’, ‘event’, { eventCategory: ‘Survey’, eventAction: ‘Take Survey’, eventLabel: ‘Clicked’});”>Login</a>

Continue reading

March 23, 2016by Matt Cooper
FacebookTwitterPinterestGoogle +Stumbleupon
Apache, Ubuntu Tutorial

Disable Directory Listing Apache2 Ubuntu

1. Edit the default apache conf file

vim /etc/apache2/apache2.conf

2. Look for the following line

Options Indexes FollowSymLinks

3. Update to

Options All FollowSymLinks MultiViews -Indexes

4. Restart apache2

/etc/init.d/apache2 restart

March 6, 2016by Matt Cooper
FacebookTwitterPinterestGoogle +Stumbleupon

About me

Hi, I'm Matt Cooper. I started this blog to pretty much act as a brain dump area for things I learn from day to day. You can contact me at: matt@linuxtutorial.co.uk

Recent Comments

  • Matt Cooper on Proxmox – add a second hard drive to node for Backups
  • karis on Proxmox – add a second hard drive to node for Backups
  • Matt Cooper on Remote MySQL Database – Slow Connection
  • Matt Cooper on Bash script to send public IP address to Email
  • Joan on Remote MySQL Database – Slow Connection

Categories

  • AdvancedTomato
  • Amazon AWS
  • Amazon Linux
  • Amazon S3
  • Apache
  • Backup Tutorial
  • Bash Scripting
  • Centos Tutorial
  • CloudFlare
  • Command line Tutorial
  • CPanel Troubleshooting
  • CPanel Tutorial
  • Debian Troubleshooting
  • Debian Tutorial
  • DKIM
  • EC2
  • ESXi
  • Faildows
  • Google Adwords
  • Google Analytics
  • Google Chromebook
  • Google Mail
  • imapsync
  • iRedmail Tutorial
  • ISPConfig3 Tutorial
  • Java
  • ldap
  • letsencrypt
  • MyDNS
  • MySQL Troubleshooting
  • MySQL Tutorial
  • Netbeans
  • Nginx
  • Nginx Troubleshooting
  • PCI Compliance
  • Percona
  • Plex Media Server Tutorial
  • Postfix
  • Proxmox Tutorial
  • Pure FTPd
  • Resourcespace Tutorial
  • Route 53
  • Rsync Tutorial
  • Security
  • Smoothwall Troubleshooting
  • Smoothwall Tutorial
  • SSH
  • Thunderbird
  • Tomcat Troubleshooting
  • Ubuntu Tutorial
  • Uncategorized
  • Unison
  • vmware
  • vzdump
  • WHM
  • Wireshark
  • Wordpress Troubleshooting
  • WordPress Tutorial

“See, you not only have to be a good coder to create a system like Linux, you have to be a sneaky bastard too." Linus Torvalds

© 2017 copyright www.linuxtutorial.co.uk // All rights reserved