SitePoint Sponsor

User Tag List

Results 1 to 3 of 3
  1. #1
    SitePoint Evangelist
    Join Date
    Mar 2011
    Location
    Bellingham, WA
    Posts
    450
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)

    .htaccess files resaved

    Hello,

    On a website I have, I do a nightly CRON job to see which of my files have been modified and then back them up to a different server. Yesterday, I saw that a bunch of my .htacess files were "modified". I put modified in quotes because they were definitely re-saved as per the modification date. However, upon inspecting them, none of them were actually changed. Is there any reason for this behavior on the end of my hosting provider for example? Or, is this an indication that my site may have been compromised?

    Thank you for your input!

  2. #2
    SitePoint Evangelist
    Join Date
    Mar 2011
    Location
    Bellingham, WA
    Posts
    450
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    Well, it turns out that my hosting provider in-fact had to make a search/replace in all of our .htaccess files as the default version of php has been changed on our server. So....sorry to have wasted anyone's time on this. However, for those who don't do nightly checks for files modified, perhaps I can use this as a public service announcement to consider it? There's even an excellent Sitepoint article on the concept:

    http://www.sitepoint.com/detect-hack...&utm_term=More

  3. #3
    Certified Ethical Hacker silver trophybronze trophy dklynn's Avatar
    Join Date
    Feb 2002
    Location
    Auckland
    Posts
    14,672
    Mentioned
    19 Post(s)
    Tagged
    3 Thread(s)
    kruet,

    Thanks for the plug in the last line! I'm glad that you're using the updated version of the code AND leaving the $ext array empty so all files are examined. Great pick-up on the .htaccess files and making your host admit to their tampering (for a valid reason).

    Regards,

    DK
    David K. Lynn - Data Koncepts is a long-time WebHostingBuzz (US/UK)
    Client and (unpaid) WHB Ambassador
    mod_rewrite Tutorial Article (setup, config, test & write
    mod_rewrite regex w/sample code) and Code Generator


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
  •