osCmax v2.5 User Manual
Results 1 to 9 of 9

Security on admin section

This is a discussion on Security on admin section within the osCmax v2 Installation issues forums, part of the osCmax v2.0 Forums category; http://wiki.oscdox.com/setting_up_se...r_admin_folder From setting security in the .htaccess file If you want to allow access from multiple IP address or domain ...

      
  1. #1
    Member
    Join Date
    Aug 2009
    Posts
    32
    Rep Power
    0


    Default Security on admin section

    http://wiki.oscdox.com/setting_up_se...r_admin_folder

    From setting security in the .htaccess file

    If you want to allow access from multiple IP address or domain names then add

    allow from 999.999.999.999
    allow from 000.000.000.000


    Obviously you need to replace the above with your IP addresses. To specify a domain name use
    allow from .yourdomainname.com
    ------------------------------------------------

    How does one use the last statement in the .htaccess file? Is the "." real?
    (allow from .yourdomainname.com).
    How does this work?
    I can use the first three digits of my ip address okay.
    Does adding the above lines to .htaccess obviate the need to rename my admin folder?
    I added captcha to my contact us page and it works fine (thanks).
    Seems the safest way is to "get ip address" wherever you are, add it to the .htaccess file, use admin and then reset the file?

    Thanks for any suggestions.
    Last edited by shirley; 02-16-2010 at 06:21 AM.

  2. #2
    osCMax Development Team
    ridexbuilder's Avatar
    Join Date
    Jul 2008
    Location
    Haggisland
    Posts
    3,014
    Rep Power
    36


    Post Re: Security on admin section

    I'm not an advocate of ip address limits - a lot of us in UK have constantly rotating IP addresses. Fine if you are always in the one location, with a fixed IP.
    If using a service like dyndns, then yourdomainname becomes possible.
    Your client machine likely has a FQDN like localhost.yourdomainname.com, hence the leading dot.
    Rename the admin directory as a matter of course.
    Constantly messing with .htaccess is a recipe for disaster.
    Last edited by ridexbuilder; 02-16-2010 at 06:18 AM.
    Hosting plans with installation, configuration, contributions, support and maintenance.

  3. #3
    Member
    Join Date
    Aug 2009
    Posts
    32
    Rep Power
    0


    Default Re: Security on admin section

    Got it...thanks
    Last edited by shirley; 02-16-2010 at 06:22 AM.

  4. #4
    osCMax Development Team
    ridexbuilder's Avatar
    Join Date
    Jul 2008
    Location
    Haggisland
    Posts
    3,014
    Rep Power
    36


    Default Re: Security on admin section

    Quote Originally Posted by shirley View Post
    I thought that might be the case but
    what does the .glendacasongallery.com do for me?
    Does it negate the need for ip addresses?
    What do most people do to allow more than one person in different locales with dynamic ip's to use admin?

    Also, I had to make my configure.php file writeable ( I had forgot that neat change).
    Allows:
    server1.glendacasongallery.com, sever2.glendacasongallery.com, client1.glendacasongallery.com, client2.glendacasongallery.com, mypc.glendacasongallery.com and localhost.glendacasongallery.com to have access to admin, and all other devices in the same domain.
    Hosting plans with installation, configuration, contributions, support and maintenance.

  5. #5
    Member
    Join Date
    Aug 2009
    Posts
    32
    Rep Power
    0


    Default Re: Security on admin section

    again, thanks

    Just changed my admin name and logged in under the new name. folks, don't forget to chmod to write the changes...and back again.

  6. #6
    Member
    Join Date
    Aug 2009
    Posts
    32
    Rep Power
    0


    Default Re: changed admin name to adminxxxx for security

    I also changed the includes/configure.php file as requested. Everything worked until I did a backup from adminxxxx and got this error:

    Error: Backup directory does not exist. Please set this in configure.php.

    Backup Directory: /mnt/wxxxx/d46/s24/b026add5/www/store/catalog/adminxxxxbackups/ (no"/")

    I assume that these two lines contain the answer:

    define('DIR_FS_ADMIN', '/mnt/wxxxx/d46/s24/b026add5/www/store/catalog/adminxxxx/');

    define('DIR_FS_BACKUP', DIR_FS_ADMIN . 'backups/');

    The working backups go to adminbackups.
    Do I need another line here? The "/" seems to be okay
    Any suggestions?

  7. #7
    osCMax Development Team
    pgmarshall's Avatar
    Join Date
    Feb 2009
    Location
    London
    Posts
    2,678
    Rep Power
    49


    Smile Re: Security on admin section

    shirley,

    Not quite sure how this has not worked for you ... can you post the contents of your admin/includes/configure.php file and I will have a look for you?

    Please make sure you remove the server and password information from the bottom of the file before you post ...

    Regards,
    pgmarshall
    _______________________________

  8. #8
    Member
    Join Date
    Aug 2009
    Posts
    32
    Rep Power
    0


    Default Re: Security on admin section - configure file

    Here is the file, I can rename the admin again if needed.
    http://wiki.oscdox.com/setting_up_se...r_admin_folder

    http://wiki.oscdox.com/setting_up_security
    I suspect I need another line of code.

    define('HTTP_SERVER', 'http://xxxxx');
    define('HTTP_CATALOG_SERVER', 'http://xxx');
    define('HTTPS_CATALOG_SERVER', 'https://xxxx');
    define('ENABLE_SSL_CATALOG', 'FALSE');
    define('DIR_FS_DOCUMENT_ROOT', '/mnt/w0209/d46/s24/b026add5/www/store/catalog');
    define('DIR_WS_ADMIN', '/store/catalog/adminxxxx/');
    define('DIR_FS_ADMIN', '/mnt/w0209/d46/s24/b026add5/www/store/catalog/adminxxxx/');
    define('DIR_WS_CATALOG', '/store/catalog/');
    define('DIR_FS_CATALOG', '/mnt/w0209/d46/s24/b026add5/www/store/catalog/');
    define('DIR_WS_IMAGES', 'images/');
    define('DIR_WS_ICONS', DIR_WS_IMAGES . 'icons/');
    define('DIR_WS_CATALOG_IMAGES', DIR_WS_CATALOG . 'images/');
    define('DIR_WS_INCLUDES', 'includes/');
    define('DIR_WS_BOXES', DIR_WS_INCLUDES . 'boxes/');
    define('DIR_WS_FUNCTIONS', DIR_WS_INCLUDES . 'functions/');
    define('DIR_WS_CLASSES', DIR_WS_INCLUDES . 'classes/');
    define('DIR_WS_MODULES', DIR_WS_INCLUDES . 'modules/');
    define('DIR_WS_LANGUAGES', DIR_WS_INCLUDES . 'languages/');
    define('DIR_WS_CATALOG_LANGUAGES', DIR_WS_CATALOG . 'includes/languages/');
    define('DIR_FS_CATALOG_LANGUAGES', DIR_FS_CATALOG . 'includes/languages/');
    define('DIR_FS_CATALOG_IMAGES', DIR_FS_CATALOG . 'images/');
    define('DIR_FS_CATALOG_MODULES', DIR_FS_CATALOG . 'includes/modules/');
    define('DIR_FS_BACKUP', DIR_FS_ADMIN . 'backups/');
    define('DIR_FCKEDITOR', DIR_FS_CATALOG . 'FCKeditor/');
    define('DIR_WS_FCKEDITOR', DIR_WS_CATALOG . 'FCKeditor/');

    define(
    login stuff..

    ?>
    Last edited by shirley; 02-27-2010 at 10:32 AM.

  9. #9
    Member
    Join Date
    Aug 2009
    Posts
    32
    Rep Power
    0


    Default Re: Security on admin section

    Okay, I finally got it right, I had to keep adjusting the configure.php files until it clicked.
    I think I may have had some bad code changes from way back that had not caused me any problem to date - my bad.
    thanks,

Similar Threads

  1. Admin section: different languages
    By mystere in forum osCmax v2 Installation issues
    Replies: 7
    Last Post: 10-22-2005, 08:57 AM
  2. can't login to admin section
    By digitalmelody in forum osCommerce 2.2 Installation Help
    Replies: 0
    Last Post: 10-22-2004, 02:04 AM
  3. using just the admin section
    By shaytaan in forum osCMax v1.7 Installation
    Replies: 0
    Last Post: 09-02-2004, 01:00 PM
  4. Admin section password
    By mrshlomi in forum osCmax v1.7 Discussion
    Replies: 5
    Last Post: 10-22-2003, 08:35 PM
  5. Admin Section not updating changes
    By cheaptrk in forum osCommerce 2.2 Installation Help
    Replies: 0
    Last Post: 05-15-2003, 11:37 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •