You can change the file directivies for a folder by adding a .htaccess file in the folder and including the following code: <IfModule mod_headers.c> <FilesMatch “\.(?i:mp3|ogg)$”> ForceType application/octet-stream Header set Content-Disposition attachment </FilesMatch> </IfModule> This will force .mp3 and .ogg files to prompt for action rather than open with the default browser setting. The IfModule […]
Author: contrib
Prevent Access And Directory Listing To A Folder Using .htaccess
If someone browses to a folder on your website that does not have an index file it will, by default, list the directory’s contents. If you have an Apache based web server you can prevent access to this folder by placing a .htaccess file within it containing the following code: Options -Indexes This can also […]
IP Forwarding and Masquerading in Linux Using UFW
In this example we have 2 private subnets 192.168.1.0/24 and 172.16.1.0/24 where only 192.168.1.xxx addresses can directly access the router at 192.168.1.1. We want to access the internet from both subnets. We need a machine connected to both networks and allow IP forwarding from 172.16.1.0/24 to 192.168.1.0/24. Although probably better with 2 NICs it can […]
FireSSH Extension for Firefox
FireSSH is a Firefox web browser extension for remote support using secure shell. WEBSITE
PuTTY SSH remote client
PuTTY is a free tool using Telnet and SSH for remote support. Operating systems: Windows and Unix platforms WEBSITE
Using OpenSSH on a Linux Server with Filezilla
On your linux server install OpenSSH if not already present. #debian apt-get install openssh-server #redhat yum install openssh-server Using Filezilla on a client enter the relavent details using the SSH protocol SFTP and user credentials setup on the server. Filezilla will ask you if you want to trust the connection and will display the rsa […]
Linux Proxy Server Setup For Internet Access
To allow global internet access through a proxy server you can add the code below to the file /etc/bash.bashrc. export http_proxy=http://10.0.4.1:3128 To have immediate effect without need for a reboot type: source /etc/bash.bashrc For temporary http proxy just type export http_proxy=”http://10.0.0.0.:3128″ Tested with Debian distros