Jump to content

orison316

New Members
  • Posts

    2
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

orison316's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. what is the os u use? the os is linux red hat 7.2 hope that helps but just to explain more. i have been using include(database.inc); at the top of most of my php pages. What i did not realize being i have been doing this for about a year is that if you use the url http://mydomain.com/database.inc then you can download the code to your computer then open with an editor and view my username and password for the database but happens to used besides the database. is there any way to prevent download of this file without having to change a huge amount of php scripts.
  2. <Files ~ \"^.inc\"> Order allow,deny Deny from all Satisfy All </Files> i am trying to prevent them from being download because they contain database info. i know you can switch it to .php but i have a lot sites with the .inc file Is there some way to have apache prevent them from being seen but still being used.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.