Login to download the latest version of Mint and your favorite Pepper, purchase additional licenses, or post in the Forum. Don't have an account? Create one!

In Partnership with Media Temple

Mint Forum

IP address filtering

Is there any way to provide a list of ip addresses to ignore?

adawen
Minted
Posted on Feb 26, '07 at 11:00 pm

in mint/config there is a file named auto.php - and that’s where you add the IP addresses you want to exlude. You’ll need a .htaccess-file in the root of your webdirectory containing:

php_value auto_prepend_file /path/to/www/directory/mint/config/auto.php

You’ll also find this string/path in the Mint Preferences / Instructions.

Hope this helps.

I’m trying to filter out my IP address and am having trouble.

I added my IP address to my auto.php file and also added an .htaccess file to my website’s root directory with this line:

php_value auto_prepend_file /www/eh2342/public_html/mint/config/auto.php

However, now whenever I try to access my site, I get a 500 Internal Server error. Any idea what I might be doing wrong?

Thanks in advance.

Shaun Inman
Mint/Pepper Developer
Posted on May 31, '07 at 02:48 pm

I’m not sure what the issue might be. A couple things to test (preferably using an htaccess file in a subdirectory rather than the root of your site):

  1. Is the full path to your auto.php correct?
  2. Does your server support appending files (running PHP-as-CGI instead of as an Apache module does not support this feature)?
  3. Is there another line in your .htaccess file creating a conflict?
  4. Perhaps a simple typo?
criuz
Minted
Posted on Aug 18, '07 at 07:43 pm

Same problem here.

What exactly do you mean with “root of my webdirectory”? The dir where the mint dir is?

For example my setup: /home/myusername/public_html/mysite/mint/config/auto.php

Where am I supposed to put the .htaccess? The problem is that I have no permissions to move out of the /myusername dir, as I am not the root admin of this server.

Shaun Inman
Mint/Pepper Developer
Posted on Aug 20, '07 at 11:14 am

That path to auto.php looks right to me.

.htaccess file should go in your /public_html/ directory.

But, if you are running PHP-as-CGI (instead of as an Apache module), it will not auto_prepend_file (I don’t think it will 500 though).

I’ve got the .htaccess set up and working. Where do I configure IPs to ignore in auto.php?

Shaun Inman
Mint/Pepper Developer
Posted on Aug 22, '07 at 05:03 pm

For IP filtering in Mint 2.12 and greater please see the Advance preferences (add &advanced to your Preference URL). With that version of Mint, using the advanced .htaccess method is no longer required.

You must be logged in to reply. Login above or create an account