How do I secure the pnTemp folder with .htaccess.

Posted on December 31st, 2006 by Alex P..
Categories: Cpanel Hosting.

If you are getting following warnings in posnuke admin panel

Notice: register_globals is on!
Notice: /pnTemp-folder should be secured with .htaccess.

Do the following step to resolve it

1) In your .htaccess file in the root of your PN installation, add:

Code

php_flag register_globals off


2) My pnTemp folder’s .htaccess file contains this:
Code

# File: $Id: .htaccess,v 1.2 2004/06/29 04:07:40 larry Exp $ # ———————————————————————- # Purpose of file: block any web access to files stored under # the pnTemp directory # ———————————————————————- SetEnvIf Request_URI .css$” object_is_css=css SetEnvIf Request_URI .js$” object_is_js=js Order deny,allow Deny from all Allow from env=object_is_css Allow from env=object_is_js

0 comments.

Leave a comment

Comments can contain some xhtml. Names and emails are required (emails aren't displayed), url's are optional.