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

Get help from other users here.

Moderators: Developer, Contributor

Post Reply
goldentiger
Posts: 4
Joined: 11 Jul 2007, 08:42

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

Post 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!
vboctor
Site Admin
Posts: 1304
Joined: 13 Feb 2005, 22:11
Location: Redmond, Washington
Contact:

Post 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.
Migrate your MantisBT to the MantisHub Cloud
deboutv
Posts: 507
Joined: 15 Jan 2007, 14:31
Location: La Ciotat, FRANCE
Contact:

Post 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
Want more plugins to customize Mantis?
=> http://deboutv.free.fr/mantis/

Mantis: 1.1.0, 1.1.0a2
PHP: 5.0.4
SQL: MySQL 5.0.19
OS: Linux
goldentiger
Posts: 4
Joined: 11 Jul 2007, 08:42

Post by goldentiger »

Thanks deboutv,

I will do as your suggestion.
Post Reply