Jump to content

Protect Admin folder with htaccess


sickz

Recommended Posts

You can also block access to the folder for all IP addresses except yours (and any others of your choice). To do this create an .htaccess file in your PrestaShop admin directory and put the following in it:

 

 

Order Deny,Allow

Deny from all

Allow from 00.00.00.00

 

You have to replace 00.00.00.00 with your actual IP address. You can also list more than one IP address; just separate them with a comma:

 

Order Deny,Allow

Deny from all

Allow from 00.00.00.00,11.11.11.11

 

There's no space between the comma and the IP addresses and also between the comma and deny and allow.

  • Like 1
Link to comment
Share on other sites

  • 2 years later...

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...