Elxis CMS Forum

Support => Elxis 4.x/5.x DEV => Topic started by: Tank on June 06, 2013, 18:29:50

Title: (How to Un)Banned by Elxis Defender
Post by: Tank on June 06, 2013, 18:29:50
So, learning more about Elxis and trying to develop mods... I was logging into a test user account and got banned by Elxis defender.  :-[
How can I unban myself? I've tried clearing the repository/logs/defender_ban.php but I'm still banned.

Thanks  8)
Title: Re: (How to Un)Banned by Elxis Defender
Post by: webgift on June 07, 2013, 14:05:46
To unban your self delete the line that corresponds to your IP address (or delete all bans) on this file:
repository/logs/defender_ban.php

Is there any generated error? What the latest move you've done before ban yourself?
Title: Re: (How to Un)Banned by Elxis Defender
Post by: Tank on June 07, 2013, 16:10:34
To unban your self delete the line that corresponds to your IP address (or delete all bans) on this file:
repository/logs/defender_ban.php

Is there any generated error? What the latest move you've done before ban yourself?

As stated, I've already cleared the defender_ban.php file. It looks like this:
Code: [Select]
<?php 

//Elxis Defender - Banned IPs - Last updated on 2013-04-05 14:40:52 (UTC)

defined(&#39;_ELXIS_&#39;) or die (&#39;Protected by Elxis Defender&#39;);

$ban = array(
);

?>

I am still banned. This error:
Code: [Select]
Request dropped!
You have been banned! If you think this is wrong contact the site administrator.
Reference code: SEC-DEFB-0001
Sorry for the inconvenience.

Besides this, I don't know what else to do. Any other ideas? Thanks!
Title: Re: (How to Un)Banned by Elxis Defender
Post by: datahell on June 07, 2013, 18:25:39
What you do is correct but are you sure you clear the contents of the correct file?
{repository folder}/logs/defender_ban.php

An alternative solution is to disable defender. Open configuration.php and clear the contents of the DEFENDER property
private $DEFENDER = '';
After logging in, go to logs from Elxis administration and clear the contents of Elxis Defender. Re-enable defender from Elxis configuration.
Title: Re: (How to Un)Banned by Elxis Defender
Post by: Tank on June 07, 2013, 20:23:35
What you do is correct but are you sure you clear the contents of the correct file?
{repository folder}/logs/defender_ban.php

An alternative solution is to disable defender. Open configuration.php and clear the contents of the DEFENDER property
private $DEFENDER = '';
After logging in, go to logs from Elxis administration and clear the contents of Elxis Defender. Re-enable defender from Elxis configuration.

Thanks datahell, that worked out great. I am now Unbanned.  :D
Good question if I got the right file, it was definitely in the repository/logs/defender_ban.php folder but maybe I did something wrong somewhere.