Zen Cart Logo
Forums / General Questions / Extra admin security by changed .htaccess?

Extra admin security by changed .htaccess?

Views: 480

Results 1 to 1 of 1
11 Apr 2011, 8:58 AM
#1
luciano9876 avatar

luciano9876

New Zenner

Join Date:
Jan 2011
Posts:
26
Plugin Contributions:
0

Extra admin security by changed .htaccess?

I have been thinking of adding extra security to the admin section.

What if I changed this part of the .htacces:

# but now allow just *certain* necessary files:
<FilesMatch "(^$|^favicon.ico$|.*\.(php|js|css|jpg|gif|png)$)">
  Order Allow,Deny
  Allow from all
</FilesMatch>

to

# but now allow just *certain* necessary files:
<FilesMatch "(^$|^favicon.ico$|.*\.(php|js|css|jpg|gif|png)$)">
  Order Allow,Deny
  Allow from <MY-IP ADDRESS>
</FilesMatch>

In other words, only make the admin part accessible for myself from my own (fixed) IP-address.
Would my shop still function as it should for customers? Or would I wreck my shop?