Title: wp-security-front-script.js
Last modified: July 7, 2026

---

# wp-security-front-script.js

 *  Resolved [fjura](https://wordpress.org/support/users/fjura/)
 * (@fjura)
 * [2 months, 3 weeks ago](https://wordpress.org/support/topic/wp-security-front-script-js/)
 * Hi guys,
 * may I ask, what is this script exactly for? wp-security-front-script.js
 * It loads on every page, so wondering if its something that could be potentially
   removed. Thank you

Viewing 1 replies (of 1 total)

 *  Plugin Support [hjogiupdraftplus](https://wordpress.org/support/users/hjogiupdraftplus/)
 * (@hjogiupdraftplus)
 * [2 months, 2 weeks ago](https://wordpress.org/support/topic/wp-security-front-script-js/#post-18959557)
 * Hi [@fjura](https://wordpress.org/support/users/fjura/)
 * The `wp-security-front-script.js` script is used by the **Spam Comment Prevention**
   feature to refresh the anti-bot keys when they expire. It should only be loaded
   on pages that contain a comment form, not on every page.
 * Please go to **AIOS → Spam Prevention → Comment Spam** and disable the **“Detect
   spambots posting comments”** option.
 * If you are using a cache plugin, please clear the cache after making this change
   and then check whether the issue is resolved.
 * Regards

Viewing 1 replies (of 1 total)

You must be [logged in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fwp-security-front-script-js%2F%3Foutput_format%3Dmd&locale=en_US)
to reply to this topic.

 * ![](https://ps.w.org/all-in-one-wp-security-and-firewall/assets/icon-256x256.
   png?rev=2798307)
 * [All-In-One Security (AIOS) – Security and Firewall](https://wordpress.org/plugins/all-in-one-wp-security-and-firewall/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/all-in-one-wp-security-and-firewall/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/all-in-one-wp-security-and-firewall/)
 * [Active Topics](https://wordpress.org/support/plugin/all-in-one-wp-security-and-firewall/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/all-in-one-wp-security-and-firewall/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/all-in-one-wp-security-and-firewall/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [hjogiupdraftplus](https://wordpress.org/support/users/hjogiupdraftplus/)
 * Last activity: [2 months, 2 weeks ago](https://wordpress.org/support/topic/wp-security-front-script-js/#post-18959557)
 * Status: resolved