Page 1 of 1

How to disabple Remote IP address:xxx.xxx.xxx.xxx

Posted: 11 Jul 2007, 08:48
by goldentiger
Dear,

I am new in using Mantis.
Could you please help me on disable Remote IP address: xxx.xxx.xxx.xxx
in notification email (when I click on reset password)
Thank you!

Posted: 11 Jul 2007, 14:36
by vboctor
Currently Mantis doesn't provide a way to disable IP address. I would encourage you to report a feature request in the bug tracker, but you will need to explain in more details what exactly is the scenario that you need to cover. It is not clear to me from your post.

Posted: 12 Jul 2007, 06:50
by deboutv
In your config file add this:

Code: Select all


if ( $_SERVER['REMOTE_ADDR'] = 'XXX.XXX.XXX.XXX' ) {
    header( 'Location: error.html' );
    exit;
}

And create an error.html file (in your mantis directory) with a message like 'Your are not allowed to access to this site' (in HTML format).

OR

Create a .htaccess file in your mantis directory with:

deny from XXX.XXX.XXX.XXX

Posted: 13 Jul 2007, 04:59
by goldentiger
Thanks deboutv,

I will do as your suggestion.