MS-IIS: stealth mode

From phpCMS

Jump to: navigation, search

[edit] phpCMS Stealth Mode with MS IIS

1) Create a http.ini file, in DOCUMENT_ROOT or the directory which is used.

Following content is needed in the file:
[ISAPI_Rewrite]
RepeatLimit 32

# Block external access to the httpd.ini and httpd.parse.errors files
RewriteRule /httpd(?:\.ini|\.parse\.errors).* / [F,I,O]

# Block external access to the Helper ISAPI Extension
RewriteRule .*\.isrwhlp / [F,I,O]

RewriteRule (.*)/ $1/index.htm
RewriteRule (.*)\.php(.*) $1\.php$2 [I,L]
RewriteRule (.*)\.htm\?(.*) /parser/parser.php\?file=$1\.htm$2 [I,L,U]
RewriteRule (.*)\.htm /parser/parser.php\?file=$1\.htm [I,L,U]

2) Now activate the Stealth Mode in the configuration of phpCMS.

(Original entry by Rabica)

Main Page: Tutorials MainPage | Top Page: MiniHowTos MainPage

Diese Seite in anderen Sprachen: Deutsch

Personal tools