Is there any way to provide a list of ip addresses to ignore?
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!
Is there any way to provide a list of ip addresses to ignore?
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.
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):
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.
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?
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