Elxis CMS Forum

Support => Security => Topic started by: maple on October 04, 2025, 19:05:41

Title: Elxis Defender - Execution Time - Debug
Post by: maple on October 04, 2025, 19:05:41
Hi, it seems that I've a problem with the Elxis Defender execution time. -Debug: Full-

You can see in the screenshot: 8.27 sec, sometimes more.

I have the the Settings>Security all parameters as a default

It was a sudden problem. It has always worked well. I haven't touched anything.

I see that the same thing is apparently happening with the website https://www.elxis.org right now


Thank you

PD: Sorry, looks like I should have put this in the Security topic. I tried deleting it, but it won't let me.




Title: Re: Elxis Defender - Execution Time - Debug
Post by: datahell on October 06, 2025, 21:52:59
elxis.org loads instantly, no delay (usually 0.4 to 1.1sec). Off course delays may occur temporarily to any site for various reasons.

If Defender is always that slow then you should check some things like the following:
1. Empty Ban list regularly
2. Do not use IP filtering in Defender settings. The IP lists are huge and you might have problems receiving them (they get loaded from external provider).
3. You might have a slow, heavy loaded server with small memory. You must allocate to PHP more memory.

If you cannot find a solution you can send me access details with a personal message to check it for you. Also try to disable Defender to see the difference. Note that Elxis is secure enough with or without Defender.
Title: Re: Elxis Defender - Execution Time - Debug
Post by: maple on October 07, 2025, 11:43:10
Hello datahell, thank you.

By the end of the weekend, it had fixed itself. Although I have reviewed and completed all the points you mentioned in your response.

However, at this very moment, the same thing is starting to happen again on my website, as well as on the www.elxis.org site. Both are coinciding again, just like over the weekend. I suspect we have the same problem.


   If I disable it in the following way, everything works perfectly:
   
   defender.class.php
      
   private function setTypes() {
      
      // Disable all types of protection
      
    $this->types = array();
    return;
   
        // ... original code


    Or, doing this, also works well:

// In configuration.php
   public $DEFENDER = '';


Therefore, it seems that there is some problem with Elxis Defender.


Thanks
Title: Re: Elxis Defender - Execution Time - Debug
Post by: datahell on October 07, 2025, 18:12:07
I don't see any delay on elxis.org, neither to an other site cause of the Elxis Defender, at least a significant delay. Maybe the problem is elsewhere. For instance when sending email notifications. I must debug your site locally to tell you the problem.

I will tell you an other example to see how the server performance effects file related operations. Can you take a full filesystem backup from Elxis administration? I have sites that complete this task within a few seconds and others (mostly in cloud environment) that reach a 60sec limit and die without finishing the job. The same with Elxis update.

Title: Re: Elxis Defender - Execution Time - Debug
Post by: maple on October 07, 2025, 19:12:45
Hi,

I just send you an PM

thanks
Title: Re: Elxis Defender - Execution Time - Debug
Post by: datahell on October 07, 2025, 19:29:29
Just checked your site. Total loading time with Elxis Defender enabled is 52 milliseconds (0,052sec). I don't see any delay... See attached screenshot.

Just a tip: You have set as email dispatch method: PHP mail and enabled Defender and error notifications. If Elxis cannot send email it will wait there 8 seconds trying to connect to the mail server. Set an SMTP account for the site to send emails properly.
Title: Re: Elxis Defender - Execution Time - Debug
Post by: nikos on October 07, 2025, 19:48:59
I just opened elxis.org with firefox, chrome and opera and loaded instantly without any delay.
Title: Re: Elxis Defender - Execution Time - Debug
Post by: maple on October 08, 2025, 01:05:28
I just opened elxis.org with firefox, chrome and opera and loaded instantly without any delay.

thanks for the test
Title: Re: Elxis Defender - Execution Time - Debug
Post by: maple on October 08, 2025, 12:32:15
Just checked your site. Total loading time with Elxis Defender enabled is 52 milliseconds (0,052sec). I don't see any delay... See attached screenshot.

Just a tip: You have set as email dispatch method: PHP mail and enabled Defender and error notifications. If Elxis cannot send email it will wait there 8 seconds trying to connect to the mail server. Set an SMTP account for the site to send emails properly.


Well, this seems random for me; it works sometimes, and sometimes it doesn't. If I disable Elxis Defender, it always works fine, which means there is some kind of conflict. Yesterday, when using a VPN, it seemed like the execution time issues disappeared on my site and on www.elxis.org. It might have something to do with my internet provider or my PC, which seems to have a conflict with something in Elxis Defender. I don't know if these clues tell you anything to locate the problem.