Jump to content

Prestasop BO on mobile phone


Recommended Posts

Any idea how to modify .htaccess file to allow using PRESTASHOP BO on my Mobile Phone when not connected to familiar IP address.

 

My .htaccess file just allows few IP addresses to access BO for security reasons. How to include mobile device connecting thought 3G to be allowed to BO.

Link to comment
Share on other sites

I guess your mobile phone change the IP everytime you connect so I have no idea of how to allow that specific device to the allow list.

 

You always can set a password to the admin directory (www.yourstore.com/backoffice), so you have to authentify twice to enter. One user and pw for all BO users and then a specific user and pw for each one.

 

To set the pw:

- Make a file called .htpasswd with the login info:

The password has to be encrypted, you can use this page http://www.htaccesse...n.shtml#a_basic to do it. Select the numer of characters, write your pw,click the Create button, copy the line under it and paste it in your file so it looks like this:

user:password

This file goes to your ftp DATA folder.

 

- Make another file called .htaccess and put it in your admin ftp folder with this:

 

AuthName "Login"
AuthType Basic
AuthUserFile /var/www/vhost/YOURDOMAIN.COM/home/data/.htpasswd
AuthGroupFile /dev/null
require valid-user

 

Done.

Link to comment
Share on other sites

×
×
  • Create New...