Support » Fixing WordPress » How to protect my database?

  • Resolved KaranW

    (@karanw)


    This might be a common question but my all content is visible via a browser to anyone (/wp-content…). What permissions do I set to avoid this and still have all the plugins running smooth?

Viewing 5 replies - 1 through 5 (of 5 total)
  • Place a file called index.php in that directory with the following content:

    <?php
    // Silence is golden.
    ?>

    You can write that in Notepad and save and upload through FTP and rename on the server.

    This isn’t a humour forum.

    Moderator cubecolour

    (@numeeja)

    ɹoʇɐɹǝpoɯ

    If your question is that you want to know how to prevent a directory listing being shown when browsing to certain directories, putting an index.php within those folders as henkholland suggests will prevent the directory contents from being listed. However if the issue is something else, can you express it in better detail?

    Quite often you can activate and deactivate directory listing in your host’s control panel.

    Yes, and I just copied the standard protecting index.php for you that comes with even my newest 2.9.1 installation. Check a fresh 2.9.1 pack: it is there in wp-content so, allthough I love a joke, this was not my joke.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘How to protect my database?’ is closed to new replies.