درباره افزونه Headers Security Advanced & HSTS WP
افزونه «Headers Security Advanced & HSTS WP» یکی از افزونههای کاربردی برای وردپرس است که توسط Andrea Ferro توسعه مییابد. نسخه فعلی این افزونه (5.3.5) با وردپرس 4.7 و بالاتر، و PHP 7.4 و بالاتر سازگار است. آخرین بهروزرسانی این افزونه در تاریخ 1405/07/16 منتشر شده که نشاندهنده پشتیبانی فعال از سوی توسعهدهنده است. در WPFORIRAN، فایل ZIP این افزونه بهطور خودکار با مخزن رسمی WordPress.org همگامسازی میشود تا کاربران ایرانی بدون نیاز به VPN، آخرین نسخه را دریافت کنند. برای نصب افزونه «Headers Security Advanced & HSTS WP»، فایل ZIP را از همین صفحه دانلود کنید. سپس از پنل مدیریت وردپرس به مسیر «افزونهها → افزودن → بارگذاری افزونه» بروید و فایل دانلود شده را آپلود کنید. پس از نصب موفقیتآمیز، روی دکمه «فعالسازی» کلیک کنید تا افزونه آماده استفاده شود. تنظیمات افزونه معمولاً در منوی پیشخوان وردپرس یا در منوی تنظیمات قابل دسترسی است. این صفحه بهطور خودکار از مخزن رسمی WordPress.org ایجاد شده است. برای دسترسی به اطلاعات کاملتر، تغییرات نسخهها (changelog)، و توضیحات تفصیلی توسط توسعهدهنده، میتوانید به صفحه رسمی این افزونه در WordPress.org مراجعه کنید. تیم WPFORIRAN در حال آمادهسازی توضیحات فارسی اختصاصی برای افزونههای پرکاربرد است.
راهنمای نصب افزونه
- فایل ZIP افزونه را با کلیک روی دکمه «دانلود نسخه 5.3.5» در بالای همین صفحه دریافت کنید. فایل از سرور WPFORIRAN در ایران ارائه میشود و نیاز به VPN ندارد.
- وارد پنل مدیریت وردپرس خود شوید و به مسیر «افزونهها → افزودن → بارگذاری افزونه» بروید.
- فایل ZIP دانلود شده (headers-security-advanced-hsts-wp-5.3.5.zip) را انتخاب و آپلود کنید.
- پس از پایان نصب، روی دکمه «فعالسازی افزونه» کلیک کنید.
- افزونه Headers Security Advanced & HSTS WP اکنون آماده استفاده است. برای تنظیمات، به منوی مربوطه در پنل وردپرس مراجعه کنید.
تغییرات نسخه 5.3.5
- Fixed: On full-page caches and static files (CSS, JS, images) the security headers were missing after 5.3.4, because headers were emitted only through PHP and those responses never run PHP. External scanners could report the headers as gone. The plugin now writes the headers to .htaccess again on Apache and LiteSpeed, so the web server applies them to every response.
- Added: Automatic de-duplication is available but is turned off by default in this version. The plugin writes the header to .htaccess and PHP keeps sending it too. On Apache the .htaccess directive replaces, so you still get a single copy. On LiteSpeed .htaccess appends instead, so if a header shows up twice, set that header to “Server only” under “Advanced: per-header delivery” to keep the server’s copy and drop the plugin’s. When automatic de-duplication is enabled, the plugin confirms – by measuring its own live responses – that the server is already sending a header before it stops sending its own copy; if that proof is missing, stale, or uncertain it keeps sending. It always errs toward sending, never toward a missing header.
- Added: A “Run check now” button on the settings page (Delivery diagnostics) shows which web server was detected, whether the .htaccess block is in place, the backend port the plugin learned (or that it has not learned one yet), the exact loopback candidates tried and the responding server, so header delivery can be verified at a glance.
- Added: Per-header delivery control under “Advanced: per-header delivery” (collapsed by default). Each header can be left on “On” (the plugin manages it: it writes the header to .htaccess and PHP sends it), set to “Server only” (keep the server’s or another plugin’s copy and drop the plugin’s own), or “Off” (do not send it at all). With automatic de-duplication off by default in this version, this selector is the primary way to resolve a duplicate: on LiteSpeed, set the affected header to “Server only”. The diagnostics panel points here when it detects a duplicate it cannot resolve on its own.