Title: Remove scripts in frontend after cache
Last modified: January 17, 2024

---

# Remove scripts in frontend after cache

 *  Resolved [Lucid Gen](https://wordpress.org/support/users/lucidgen/)
 * (@lucidgen)
 * [2 years, 6 months ago](https://wordpress.org/support/topic/remove-scripts-in-frontend-after-cache/)
 * Hello Wordfence supporters!
 * I would like to use Wordfence for admin area only, I don’t want my frontend be
   added any scripts. How I can remove this scripts?
 * Thank you!
 *     ```wp-block-code
       <script type="text/javascript">(function(url){if(/(?:Chrome\/26\.0\.1410\.63 Safari\/537\.31|WordfenceTestMonBot)/.test(navigator.userAgent)){return}
       var addEvent=function(evt,handler){if(window.addEventListener){document.addEventListener(evt,handler,!1)}else if(window.attachEvent){document.attachEvent('on'+evt,handler)}};var removeEvent=function(evt,handler){if(window.removeEventListener){document.removeEventListener(evt,handler,!1)}else if(window.detachEvent){document.detachEvent('on'+evt,handler)}};var evts='contextmenu dblclick drag dragend dragenter dragleave dragover dragstart drop keydown keypress keyup mousedown mousemove mouseout mouseover mouseup mousewheel scroll'.split(' ');var logHuman=function(){if(window.wfLogHumanRan){return}
       window.wfLogHumanRan=!0;var wfscr=document.createElement('script');wfscr.type='text/javascript';wfscr.async=!0;wfscr.src=url+'&r='+Math.random();(document.getElementsByTagName('head')[0]||document.getElementsByTagName('body')[0]).appendChild(wfscr);for(var i=0;i<evts.length;i++){removeEvent(evts[i],logHuman)}};for(var i=0;i<evts.length;i++){addEvent(evts[i],logHuman)}})('//mysite.com/?wordfence_lh=1&hid=D18FFC5F71BA9D2E575CACDFE95FB959')</script>
       ```
   
    -  This topic was modified 2 years, 6 months ago by [Lucid Gen](https://wordpress.org/support/users/lucidgen/).

Viewing 3 replies - 1 through 3 (of 3 total)

 *  Plugin Support [wfphil](https://wordpress.org/support/users/wfphil/)
 * (@wfphil)
 * [2 years, 6 months ago](https://wordpress.org/support/topic/remove-scripts-in-frontend-after-cache/#post-17350654)
 * Hi [@lucidgen](https://wordpress.org/support/users/lucidgen/)
 * On the **Tools **>> **Live Traffic** page you will need to set and save the **
   Traffic Logging Mode** to **Security Only**.
 *  Thread Starter [Lucid Gen](https://wordpress.org/support/users/lucidgen/)
 * (@lucidgen)
 * [2 years, 6 months ago](https://wordpress.org/support/topic/remove-scripts-in-frontend-after-cache/#post-17351537)
 * Thank you!
 *  Plugin Support [wfphil](https://wordpress.org/support/users/wfphil/)
 * (@wfphil)
 * [2 years, 6 months ago](https://wordpress.org/support/topic/remove-scripts-in-frontend-after-cache/#post-17355525)
 * Hi [@lucidgen](https://wordpress.org/support/users/lucidgen/)
 * You’re welcome!

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Remove scripts in frontend after cache’ is closed to new replies.

 * ![](https://ps.w.org/wordfence/assets/icon.svg?rev=2070865)
 * [Wordfence Security - Firewall, Malware Scan, and Login Security](https://wordpress.org/plugins/wordfence/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wordfence/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wordfence/)
 * [Active Topics](https://wordpress.org/support/plugin/wordfence/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wordfence/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wordfence/reviews/)

 * 4 replies
 * 2 participants
 * Last reply from: [wfphil](https://wordpress.org/support/users/wfphil/)
 * Last activity: [2 years, 6 months ago](https://wordpress.org/support/topic/remove-scripts-in-frontend-after-cache/#post-17355525)
 * Status: resolved