Archive for the tag 'Disable'

SBDavid

Howto disable ipv6 networking

Howto disable ipv6 networking

First check if the module is loaded:

To check if this module is currently loaded in your system, issue the following command as root. If you see ipv6 in its output, then the module is loaded.

lsmod | grep ipv6

Disable ipv6 in ubuntu:

You need to edit the aliases file using the following command:

sudo nano /etc/modprobe.d/aliases

Find

alias net-pf-10 ipv6

change to

alias net-pf-10 off
alias ipv6 off

Save the file and reboot.

Disable ipv6 in Fedora/Centos:

Open your modprob.conf file and add following line:

vi /etc/modprobe.conf

Add

alias net-pf-10 off

Or disable it with the following command.

chkconfig ip6tables off

Disable Script Execution Using .htaccess

You can disable scripts being run in the directory of your choice by adding the following code to your .htaccess file in that directory

This would be particularly useful if you allow visitors to upload files to your server, but want to be sure that any potentially harmful files they upload are not allowed to execute.

AddHandler cgi-script .php .pl .jsp .asp .sh .cgi
Options -ExecCGI

You can replace the file types in the example with the file types you wish to disallow using .htaccess.

How to disable serversignature using .htaccess

To disable the server’s signature used to identify the server, use the following code in your .htaccess file:

ServerSignature Off
SBDavid

Disable ping requests in Plesk

Disable ping requests in Plesk

By default your server can be pinged by anyone, meaning it is discoverable. You can improve security by changing your firewall to only allow known IP addresses to ping your server.

If your static IP is 192.168.1.1 change the rules under Ping Service in Plesk’s default Firewall rules.

Allow incoming from 192.168.1.1
Deny incoming from all others

How to disable anonymous FTP in EnsimPro for Linux

By deafult the configuration file is: /etc/proftpd.conf has the last line as:

include “/etc/proftpd/anonymousftp”

which means anonymous ftp is enabled.

Upon commenting this out with a ” # ” and restarting the service ,anonymous ftp is disabled.

« Prev - Next »