Forum

Restric IP address

Fred
15 June 2015, 20:47
Hi,

I want to force my wordpress admin login to use SSL and limit the access to specific IP... I tried the following but it didn't work
UrlToolkit {
ToolkitID = secure-wp
UseSSL Skip 2
Match ^/wp-login.php(.*) Redirect https://blog.example.tld/wp-login.php$1
Match /wp-admin/$ Redirect https://blog.example.tld/wp-admin/$1
Path = /usr/local/www/webs/trinitech_co_uk/tools/hiawatha_monitor
AccessList = allow 213.146.xxx.xxx, allow 193.128.xxx.xxx allow , deny all
}


Could you please tell advise me on how I can achieve this?

Thank you
Hugo Leisink
15 June 2015, 22:38
The Redirect rules look ok, but the Path and AccessList are not valid options for the UrlToolkit. Path is for a Directory section (I think you can simply remove that one) and AccessList should be placed in the VirtualHost section.
This topic has been closed.