Warning: include_once(): http:// wrapper is disabled in the server configuration by allow_url_include=0 in /home/users/2/moriya-h5/web/confrage/windows/iis/urlscan/urlscan.html on line 2

Warning: include_once(http://www.confrage.com/bin/header.php): failed to open stream: no suitable wrapper could be found in /home/users/2/moriya-h5/web/confrage/windows/iis/urlscan/urlscan.html on line 2

Warning: include_once(): Failed opening 'http://www.confrage.com/bin/header.php' for inclusion (include_path='.:/usr/local/php/5.6/lib/php') in /home/users/2/moriya-h5/web/confrage/windows/iis/urlscan/urlscan.html on line 2
WindowsのIISのヘッダ情報を制御する | 株式会社CONFRAGE
Warning: include_once(/home/sites/heteml/users/m/o/r/moriya-h5/web/confrage/bin/menu.php): failed to open stream: No such file or directory in /home/users/2/moriya-h5/web/confrage/windows/iis/urlscan/urlscan.html on line 17

Warning: include_once(): Failed opening '/home/sites/heteml/users/m/o/r/moriya-h5/web/confrage/bin/menu.php' for inclusion (include_path='.:/usr/local/php/5.6/lib/php') in /home/users/2/moriya-h5/web/confrage/windows/iis/urlscan/urlscan.html on line 17
WindowsのIISのヘッダ情報を制御する
IISのヘッダ情報を制御するには、Urlscanというツールをインストールします。
IIS5.1でUrlscan2.5の動作を確認しています。こちらよりダウンロードしてください。

exeを実行し、以下の画面が表示されたら正常にインストール完了しています。



%windir%¥system32¥inetsrv¥urlscan¥に以下のファイルがインストールされます。

urlscan.dll
urlscan.exe
urlscan.ini
urlscan.iniをテキストファイルで開いて編集するだけで、あとのファイルは使いません。
以下のヘッダ情報を見てください。



サーバの情報(バージョンなど)が表示されています。これを表示しないようにするにはurlscan.iniの

RemoveServerHeader=1
と設定します。デフォルトは0になっています。

urlscan.iniの設定を反映するには、管理ツールより「IIS Admin」を再起動します。それに伴って再起動されるサービスも再起動しておきます。

再起動後、ヘッダ情報にはサーバ情報が表示されなくなるようになります。



特定のリクエストを遮断する
特定のリクエストを遮断するには,urlscan.iniを編集します。例えば、[DenyExtensions]に.phpを追加します。

[DenyExtensions]
.php
これで、phpファイルにアクセスしようとすると、404エラーとなります。※「IIS Admin」の再起動が必要です。

WindowsのIISで日本語URLが表示できない
URLScanはデフォルトでは2バイトコードのURLを許さない設定になっていますので、日本語URLは表示できません。

Back to top

Information

Warning: include_once(/home/sites/heteml/users/m/o/r/moriya-h5/web/confrage/bin/side_bar.php): failed to open stream: No such file or directory in /home/users/2/moriya-h5/web/confrage/windows/iis/urlscan/urlscan.html on line 103

Warning: include_once(): Failed opening '/home/sites/heteml/users/m/o/r/moriya-h5/web/confrage/bin/side_bar.php' for inclusion (include_path='.:/usr/local/php/5.6/lib/php') in /home/users/2/moriya-h5/web/confrage/windows/iis/urlscan/urlscan.html on line 103

Warning: include_once(/home/sites/heteml/users/m/o/r/moriya-h5/web/confrage/bin/seo.php): failed to open stream: No such file or directory in /home/users/2/moriya-h5/web/confrage/windows/iis/urlscan/urlscan.html on line 112

Warning: include_once(): Failed opening '/home/sites/heteml/users/m/o/r/moriya-h5/web/confrage/bin/seo.php' for inclusion (include_path='.:/usr/local/php/5.6/lib/php') in /home/users/2/moriya-h5/web/confrage/windows/iis/urlscan/urlscan.html on line 112