0
這是一個非常具體的問題,我對NGIX或Wordpress不太熟悉,但是繼承了這種情況。如何從NGIX服務器WordPress博客訪問日誌中獲取特定IP
我想解析一個訪問日誌文件的IP地址綁定到特定的表單提交。
表單位於本地路徑/ about /但在日誌中查找我無法找到任何匹配此請求的頁面,我相信這是由於wordpress路由系統。格式html看起來像這樣
<form action="/about/#wpcf7-f7730-p2-o1" method="post" class="wpcf7-form">
<div style="display: none;">
<input type="hidden" name="_wpcf7" value="7730">
<input type="hidden" name="_wpcf7_version" value="3.3.2">
<input type="hidden" name="_wpcf7_unit_tag" value="wpcf7-f7730-p2-o1">
<input type="hidden" name="_wpnonce" value="79e7f7dc53">
</div>
<p>Your Name (required)<br>
<span class="wpcf7-form-control-wrap your-name"><input type="text" name="your-name" value="" class="wpcf7-form-control wpcf7-text wpcf7-validates-as-required" size="40"> </span> </p>
<p>Your Email (required)<br>
<span class="wpcf7-form-control-wrap your-email"><input type="text" name="your-email" value="" class="wpcf7-form-control wpcf7-text wpcf7-email wpcf7-validates-as-required wpcf7-validates-as-email" size="40"></span> </p>
<p>Subject<br>
<span class="wpcf7-form-control-wrap your-subject"><input type="text" name="your-subject" value="" class="wpcf7-form-control wpcf7-text" size="40"></span> </p>
<p>Your Message<br>
<span class="wpcf7-form-control-wrap your-message"><textarea name="your-message" class="wpcf7-form-control wpcf7-textarea" cols="40" rows="10"></textarea></span> </p>
<p><input type="submit" value="Send" class="wpcf7-form-control wpcf7-submit"><img class="ajax-loader" src="http://outoftheboxfood.com/wp-content/plugins/contact-form- 7/images/ajax-loader.gif" alt="Sending ..." style="visibility: hidden;"></p>
<div class="wpcf7-response-output wpcf7-display-none"></div>
</form>
我有訪問日誌,但不知道要查找什麼來查找此表單的任何提交。
我認爲操作鏈接'/約/#wpcf7-f7730-P2-o1',這我猜是表單的相同URL,是你應該在服務器日誌中查找的內容。 –