Both Apache on Unix and IIS on Windows systems log HTTP requests out-of-the-box in file form. To protect against hacking attacks, queries to your own website should be regularly evaluated and analyzed manually and automatically (for example using log file analyzers such as AWStats ). For example, in widely used configurations, the paths of the relevant log files are as follows:
/var/log/apache2/access.log(Example: Ubuntu 12.04, Apache 2.2)C:\inetpub\logs\LogFiles\W3SVC1\u_ex<YYMMDD>.log(Example: Windows Server 2012 R2, IIS 8.5)