Post by darklite » Sat Dec 06, 2014 11:40 pm

I was reading the documentation for the admin, and saw this:

".htaccess & .htpasswd
A .htaccess and .htpasswd file in the admin folder will prevent hackers from accessing your store, even if they discover the admin login location. Using .htaccess, you can deny all IP addresses from viewing your store, except the admin's IP address. A .htpasswd in the admin folder will require an additional password for the allowed administrator to access this directory. "

I don't know how to write an htaccess file. is there any help on this somewhere? They give code for catalog and system htaccess but not the admin.

Thanks!

New member

Posts

Joined
Wed Oct 23, 2013 5:36 am

Post by chongshengdz » Tue Dec 09, 2014 6:27 pm

If you need to install third-party modules,please don't change your admin folder.
please create a file named ".htaccess"
then add

order deny,allow
deny from all
allow from xx.xx.xx.xx

Replace xx.xx.xx.xx with your IP address every time if you want to access your admin.
note,there is a dot before htaccess.
No one can access your admin except you.
If you want to allow multiple IP addresses,just write:
allow from 219.134.101.172 192.157.208.124 50.7.109.150 206.253.167.190
.htaccess is only working with apache,not nginx.

https://www.ectransistors.com/
https://www.transistormosfet.com/


Active Member

Posts

Joined
Sat Apr 12, 2014 10:18 pm


Post by darklite » Tue Dec 09, 2014 10:51 pm

Thanks for this. I hate to sound like a dummy, but I don't know what my ip address is. do I need the htaccess if I'm not going to install 3rd party software, which I'm not?

New member

Posts

Joined
Wed Oct 23, 2013 5:36 am

Post by chongshengdz » Wed Dec 10, 2014 4:36 am

If you don't know your IP address,you can visit:
http://ipaddress.com/
If you don't use third party software at all,then after installation,
you can
1)rename your admin folder
2)go to your admin folder/config.php
rename admin to the same name as your admin folder in the file.
it should be done.

https://www.ectransistors.com/
https://www.transistormosfet.com/


Active Member

Posts

Joined
Sat Apr 12, 2014 10:18 pm


Post by darklite » Wed Dec 10, 2014 5:56 am

Thank you so much, that did the trick!

New member

Posts

Joined
Wed Oct 23, 2013 5:36 am

Post by darklite » Thu Dec 18, 2014 11:37 pm

Yes, that did the trick. What I did was open the config.php and did a find/replace, replacing every instance of "admin" with the new store name.

New member

Posts

Joined
Wed Oct 23, 2013 5:36 am
Who is online

Users browsing this forum: No registered users and 3 guests