Jump to content
  • 0

Restrict Admin Area Access To Certain Ips


Gareth-Host Red Dragon

Question

8 answers to this question

Recommended Posts

  • 0

add a .htaccess into the admin directory with the following code:

Order Deny,Allow
Deny from all
Allow from 1.1.1.1
of course put the IPs you want in it, multiple IPs can be separated by a single space on the same line (no commas)

Thanks. Does Blesta have an actual admin directory though? Will have to check when I get home.

Link to comment
Share on other sites

  • 0

I didn't even think about that, lol....sorry...just posted a generic fix for htaccess IP blocking :)

I'll let someone else come along and chime in on this one, as I've never really messed with this on a rewrite level and wouldn't want to help you screw it up :)

No problem, thanks for your help anyway.

Link to comment
Share on other sites

  • 0

You don't need a admin folder to restrict by path. For Apache servers  you can use the location example as stated above to do it. More information can be found at https://httpd.apache.org/docs/current/mod/core.html#location

 

For security you should probably rename your /admin area to something else. Change the following line in the route.php file.

 

Configure::set("Route.admin", "admin"); to something like Configure::set("Route.admin", "ziggyzoo"); to change the path to /ziggyzoo.

Hope that helps. :)

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...