Welcome Guest, Not a member yet? Register   Sign In
How to restrict IP on folder of controllers from apache config?
#4

[eluser]gwerner[/eluser]
I tried that, but I wasn't having any success. The example I put in first is what I had whittled it down to try to get anything to work. This is my original original that I was tried that doesn't work.

Code:
<Directory /var/www/application/controllers/foldertoblock/>
            Order deny,allow
            Deny from all
            Allow from xxx.xxx.xxx.xxx
            Allow from xxx.xxx.xxx.xxx
</Directory>

If I just try to block the web root this worked.

Code:
<Directory /var/www/>
            Order deny,allow
            Deny from all
            Allow from xxx.xxx.xxx.xxx
            Allow from xxx.xxx.xxx.xxx
</Directory>

Does it not work because the Codeigniter handles everything through the index.php?


Messages In This Thread
How to restrict IP on folder of controllers from apache config? - by El Forum - 12-05-2012, 06:34 PM



Theme © iAndrew 2016 - Forum software by © MyBB