Posts under Linux

How to block access to certain file types using .htaccess

advertisement

linuxIt’s a good practice to block visitor access to file types that is not being used in web server. You can configure .htaccess to block access to specific file types (eg: inc, bak, log, sh). It’s common for webmaster to edit files at the server and rename the old filename to .bak. If your file contain sensitive information like login credentials, then your info will be expose to public.

To block access to certain file types using .htaccess, follow the steps below:

Continue reading How to block access to certain file types using .htaccess »

How to use apt to list available packages?

advertisement

debian apt, debianJust installed Debian and looking for ways to list all available packages using apt. After some search, i found that you can use apt-cache to list all available packages in debian.

To list all available packages from apt, follow the steps below:-

Continue reading How to use apt to list available packages? »

Debian: “There is no public key available for the following key IDs”

advertisement

debianI’m trying to install apache thru apt-get, but it shows:-

W: There is no public key available for the following key IDs:
4D270D06F42584E6
W: You may want to run apt-get update to correct these problems

Even i run apt-get update, it wont solve the problem. after going thru some forum and mailing list, i finally found the solution.

To fix this “no public key available” problem, follow the steps below:-

Continue reading Debian: “There is no public key available for the following key IDs” »