renaming admin.php
2 posts by 2 authors in: Forums > CMS Builder
Last Post: January 8, 2016 (RSS)
By gord - January 8, 2016
Hi,
Yet another (brief) post about renaming admin.php:
After renaming the file, the redirect from index.php no longer works. Not sure which version my copy of the file originally came from, but it contains the following:
<?php if (file_exists('admin.php')): ?>
<meta http-equiv="REFRESH" content="0; URL=admin.php">
<?php endif ?>
I'm wondering if I should replace this with the new filename (or alternatively in php with a header redirect) -- or would this negate the benefit of having renamed the file in the first place?
Gord
By ross - January 8, 2016
Hi Gord
The idea behind renaming admin.php is because it's a fairly common file name for the admin section of a website and is something hackers will likely try first. From a security standpoint, it's much harder to break into a system if you don't know the name of the "front door"
Updating index.php so it points to your new file name does not impact the effectiveness of this security recommendation so you can go ahead and make that change
Let me know how you make out.
Cheers,
Ross Fairbairn - Consulting
consulting@interactivetools.com
Hire me! Save time by getting our experts to help with your project.
Template changes, advanced features, full integration, whatever you
need. Whether you need one hour or fifty, get it done fast with
Priority Consulting: http://www.interactivetools.com/consulting/