apache - Deny Access from IP range on 1 file/api -


itried using mod_rewrite deny access 1 file on web server. didn't work.

rewritecond %{remote_addr} =10\.0\.0\.145 rewriterule ^/mylog/_myapi - [f] 

try removing leading slash. in apache 2.*, it's removed before being applied rules in htaccess files:

rewriterule ^mylog/_myapi - [f] 

Comments

Popular posts from this blog

basic authentication with http post params android -

vb.net - Virtual Keyboard commands -

css - Firefox for ubuntu renders wrong colors -