开发工具:Visual C++
上传日期:2013-03-27 19:32:48
上 传 者管理员
说明:  In the case of a proxy server, so that the the IIS7 logs show users real IP instead of the IP address of the proxy server. HTTP_X_FORWARDED_FOR instead REMOTE_HOST address

F5XFFHttpModule-Source (0, 2013-03-27)
F5XFFHttpModule-Source\Debug (0, 2013-03-27)
F5XFFHttpModule-Source\Debug\F5XFFHttpModule.dll (216576, 2009-12-02)
F5XFFHttpModule-Source\F5XFFHttpModule.cpp (7476, 2009-12-02)
F5XFFHttpModule-Source\F5XFFHttpModule.def (58, 2009-12-01)
F5XFFHttpModule-Source\F5XFFHttpModule.h (4616, 2009-12-02)
F5XFFHttpModule-Source\F5XFFHttpModule.ncb (11471872, 2009-12-03)
F5XFFHttpModule-Source\F5XFFHttpModule.sln (1249, 2009-12-02)
F5XFFHttpModule-Source\F5XFFHttpModule.vcproj (7168, 2009-12-02)
F5XFFHttpModule-Source\F5XFFHttpModule.vcproj.JoesDevStation.Joe.user (2601, 2009-12-03)
F5XFFHttpModule-Source\F5XFFHttpModulefactory.h (3467, 2009-12-02)
F5XFFHttpModule-Source\Install-Xff.ps1 (1275, 2009-12-02)
F5XFFHttpModule-Source\Release (0, 2013-03-27)
F5XFFHttpModule-Source\Release\F5XFFHttpModule.dll (65024, 2009-12-02)
F5XFFHttpModule-Source\main.cpp (5966, 2009-12-02)
F5XFFHttpModule-Source\precomp.cpp (20, 2006-06-29)
F5XFFHttpModule-Source\precomp.h (337, 2009-12-01)
F5XFFHttpModule-Source\x64 (0, 2013-03-27)
F5XFFHttpModule-Source\x64\Debug (0, 2013-03-27)
F5XFFHttpModule-Source\x64\Debug\F5XFFHttpModule.dll (250880, 2009-12-02)
F5XFFHttpModule-Source\x64\Release (0, 2013-03-27)
F5XFFHttpModule-Source\x64\Release\F5XFFHttpModule.dll (70144, 2009-12-02)

----------------------------------------------------------------------------- Files: ----------------------------------------------------------------------------- readme.txt - this document Install-XFF.ps1 - Install script to register the module with IIS. x86\ Debug\ - 32 bit Debug build Release\ - 32 bit Release build x***\ Debug\ - *** bit Debug build Release\ - *** bit Release build ----------------------------------------------------------------------------- Installation ----------------------------------------------------------------------------- 1) Create a directory for the HTTP Module ie. C:\> md c:\HttpModules 2) Copy the files from the Release build of your target platform (x86 for 32-bit or x*** for ***-bit). ie. C:\> xcopy \x***\Release\* c:\HttpModules 3) Copy the Install-XFF-ps1 PowerShell script to the target directory ie. C:\> xcopy \Install-XFF.ps1 c:\HttpModules 4) Change directory to the install path C:\> cd c:\HttpModules 5) Register the Module with the install script (or via IIS admin). C:\HttpModules\> .\Install-XFF.ps1 -cmd install -module_path c:\HttpModules\F5XFFHttpModule.dll The module should now be installed in your top level IIS server Module settings as well as each existing application. You can selectively add/remove them from the IIS admin at this point. ----------------------------------------------------------------------------- Customizing The X-Forwarded-For Header Name ----------------------------------------------------------------------------- The F5 XFF Http Module supports a configuration file named F5XFFHttpModule.ini. It looks in the same directory as the configured .DLL for a file of the same name as it self with the .INI extension. An example file is included but renamed to F5XFFHttpModule.ini.bak. Once you get rid of the ".bak" extension and restart the application the settings will take effect. In this configuration file, you can override the default header name of "X-Forwarded-For" to whatever you choose. At this point, the Module only supports a single header. ----------------------------------------------------------------------------- Troubleshooting ----------------------------------------------------------------------------- The debug build will log a bunch of info to the c:\F5XFFModule.log file. You may have to remove the module from your IIS applications to overwrite the module in the C:\HttpModules directory. Sometimes an "iisreset" will do the trick. The debug build produces A LOT of data so DO NOT run the debug build in production.