Project

General

Profile

Restrict Plugin access to LAN only

Added by Saugat kc over 11 years ago

I am developing a plugin, in which i need to restrict the plugin to be accessed only from LAN only i.e. it should not be accessed from Internet.
I tried using .htaccess file in plugin folder but it did not work. Can anyone suggest me the solution.
I am using Apache Server in Win 7 for redmine hosting.


Replies (1)

RE: Restrict Plugin access to LAN only - Added by Harry Garrood over 11 years ago

Have you tried a <Location> directive in your apache config?

If you can't get that to work, an alternative might be to make your own Rack::Middleware.

    (1-1/1)