Posts under Web Hosting

How to block .log file using in .htaccess

advertisement

linuxlog file normally contain some sensitive information about a website. it’s good to block .log file from being access by visitor. If log file is not block, hacker might use the log file content to launch attack or profile a website. If you are running apache webserver, you can easily block .log file using .htaccess

To block .log file using .htaccess, follow the steps below:-

Continue reading How to block .log file using in .htaccess »

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 solve “.htaccess pcfg_openfile: unable to check htaccess file, ensure it is readable”

advertisement

My error log shows:-

[Sun Jul 13 01:15:32 2008] [crit] [client 218.208.xxx.xxx] (13)Permission denied: /home/mydomain/public_html/.htaccess pcfg_openfile: unable to check htaccess file, ensure it is readable

And the site is showing “403 Forbidden Error”.
At first, I suspect it’s .htaccess problem, but actually it’s caused by Frontpage Extension.

To solve “.htaccess pcfg_openfile: unable to check htaccess file, ensure it is readable” follow the steps below:-

Continue reading How to solve “.htaccess pcfg_openfile: unable to check htaccess file, ensure it is readable” »