Title: Harmful code has been detected
Last modified: August 26, 2023

---

# Harmful code has been detected

 *  Resolved [eprince](https://wordpress.org/support/users/eprince/)
 * (@eprince)
 * [2 years, 9 months ago](https://wordpress.org/support/topic/harmful-code-has-been-detected/)
 * A piece of harmful code has been detected on my website. The specific location
   of the code is **/plugin/ad-inserter-pro/class.php**, specifically on line 644.
 * The **code in question is as follows**: `eval ("?>" . $code . "<?php ");`
 * I kindly request immediate assistance in resolving this matter, as the mentioned
   code is prone to execution within the context of the calling “eval()” function.
   Consequently, any variables that are established or modified within this “eval()”
   call might persist even after its execution has concluded. Your prompt attention
   to this issue would be greatly appreciated.

Viewing 1 replies (of 1 total)

 *  Plugin Author [Spacetime](https://wordpress.org/support/users/spacetime/)
 * (@spacetime)
 * [2 years, 9 months ago](https://wordpress.org/support/topic/harmful-code-has-been-detected/#post-17003212)
 * Hello,
 * this is not a harmful code – it is part of the plugin. It is used to execute 
   PHP code you configure. There are plenty of settings to limit or disable PHP 
   code execution:
   [https://adinserter.pro/documentation/code-editing#php-code](https://adinserter.pro/documentation/code-editing#php-code)

Viewing 1 replies (of 1 total)

The topic ‘Harmful code has been detected’ is closed to new replies.

 * ![](https://ps.w.org/ad-inserter/assets/icon-256x256.jpg?rev=1502039)
 * [Ad Inserter - Ad Manager & AdSense Ads](https://wordpress.org/plugins/ad-inserter/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/ad-inserter/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/ad-inserter/)
 * [Active Topics](https://wordpress.org/support/plugin/ad-inserter/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/ad-inserter/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/ad-inserter/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [Spacetime](https://wordpress.org/support/users/spacetime/)
 * Last activity: [2 years, 9 months ago](https://wordpress.org/support/topic/harmful-code-has-been-detected/#post-17003212)
 * Status: resolved