Jump to content

Question

8 answers to this question

Recommended Posts

  • 0
Posted

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)

  • 0
Posted

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.

  • 0
Posted

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 :)

  • 0
Posted

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.

  • 0
Posted

You could try using a location match. Apache 2 or 2.2.<Location /admin>Order Deny,Allow Deny from all Allow from 1.1.1.1</Location>

 

Apache 2.4

<Location /admin>

Require ip 1.1.1.1

</Location>

  • 0
Posted

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. :)

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...