Show Me The Cookies

描述

Show Me The Cookies displays all current cookies your site is using. Once activated, you can find this list under Appearance – Cookies.

You can also display this list to your visitors by placing the shortcode [cookies] into any post or page.

WordPress uses several cookies under the hood by default. If you’d like to filter these out, use the shortcode [cookies-nowp], which will show a message if no non-WordPress cookies are found.

This plugin is based on code by David Artiss, who kindly made it available on GitHub.

To find out more about what cookies are and what can be done with them, please read https://en.wikipedia.org/wiki/HTTP_cookie

螢幕截圖

安裝

  1. Either: Upload the entire folder cookies to the /wp-content/plugins/ directory.
  2. Or: Download the ZIP file, then head over to Plugins – Add New – Upload Plugin, then browse to your file.
  3. Or: From Plugins – Add New, search for “show me the cookies” and hit Install.
  4. Then: Activate the plugin through the Plugins menu in WordPress.
  5. You can view your cookies under Appearance – Cookies.

常見問題

None so far.

評價

2023年1月15日
Thank you very much for this clean and very useful plugin! It helps me a lot. It proves that simplicity is king! I suggest a little improvement to author: when there is no cookies to show, the plugin should return a string like “no cookies to show”. Good work!
2021年7月26日
If you need to know which cookies are created by your WP website (because you need to set up a GDPR-compliant cookie banner, for example), then this plugin comes in handy. However, in the current version it does not display the information which component/script creates a specific cookies, which would be crucial in certain situations.
2020年7月17日
Simple to install, clear list of functional cookies on my site (which is hard to track using the inspect function on browsers because some come and go as pages load up) This plugin really helped me to nail down my cookie control and opt-in settings on my site. Thank you!
2019年4月2日
Hi there Jay, Thank you for this great little plugin. It is great for showing the list of cookies that are om a WordPress site. This really make our lives much easier. The plugin is really sweet. Cheers, John
閱讀全部4個評價

貢獻者及開發者

“Show Me The Cookies” 是一個開源的軟體。以下的人對這個外掛作出了貢獻。

貢獻者

將 Show Me The Cookies 外掛本地化為台灣繁體中文版。

對開發相關資訊感興趣?

任何人均可瀏覽程式碼、查看 SVN 存放庫,或透過 RSS 訂閱開發記錄

修改日誌

1.2

  • Security: added sensitive cookie denylist — hides WordPress auth, session, and token cookies from shortcode output
  • Security: cookie values are now masked in all output (first 3 + ••• + last 3 characters)
  • Security: shortcodes now hide values by default; opt in with show_values=”true” to display masked values
  • Security: added admin notice warning that cookie values may contain sensitive session data
  • Removed: is_wp_cookie() replaced by the more robust is_sensitive_cookie() denylist method
  • Changed: [cookies] and [cookies-nowp] shortcode attribute novalue replaced by show_values=”true”
  • Improved: admin cookie list shows all cookies (including WordPress ones) with masked values
  • Added: cookie value size (character count) displayed beneath each value in the admin list
  • Fixed: [cookies] shortcode now shows an informative message when no non-sensitive cookies are found

1.1

  • Security: escaped all cookie name and value output to prevent XSS
  • Security: removed do_shortcode() wrapping on cookie data to prevent shortcode injection
  • Security: added direct file access guard
  • Security: removed third-party social media scripts from admin page
  • Fixed: undefined variables in admin cookie list function (PHP 8 compatibility)
  • Fixed: capability check mismatch between menu registration and access guard
  • Added: Text Domain declaration for translations
  • Updated: requires PHP 8.0 and WordPress 5.9 or later
  • Code: refactored into a class to avoid global namespace pollution
  • Improved: shortcode and admin cookie list now share a consistent format (Cookie #N / Value)
  • Improved: [cookies-nowp] shows a message when no non-WordPress cookies are found
  • Removed: custom separator feature (enclosing shortcode form [cookies]…[/cookies])

1.0

  • Initial Release
  • Based on code by David Artiss (thanks, David!)