WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] How to protect my database? (6 posts)

  1. KaranW
    Member
    Posted 4 years ago #

    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?

  2. henkholland
    Member
    Posted 4 years ago #

    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.

  3. KaranW
    Member
    Posted 4 years ago #

    This isn't a humour forum.

  4. cubecolour
    ɹoʇɐɹǝpoɯ
    Posted 4 years ago #

    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?

  5. mores
    Member
    Posted 4 years ago #

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

  6. henkholland
    Member
    Posted 4 years ago #

    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.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.