• I am curious and am without experience in this area. How could I block access to the core files without blocking wordpress. If I try to use a .htaccess file I seem to block wordpress’s css.

    Thanks
    Matt

Viewing 7 replies - 1 through 7 (of 7 total)
  • What files are you trying to block? Or more to the point — why do you think you need to do this?

    Thread Starter tfmegatron

    (@tfmegatron)

    Well I thought it might be a good idea that people would not be able to browse the core files. I suppose that they might be able to gather personal information or no? I have never seen it where one would have access to core files like this. I mean you could browse any directory and download, save and read anything. If I am incorrect let me know.

    Thanks,
    Matt

    No, that’s not how PHP works (you cannot view the source of PHP script from within your browser), not to mention, none of the data of your site is stored in any file. It’s all in your database.

    Stop worrying. Don’t you think that if it was a problem, we woulda done something about it? 😉

    Viper is correct, your fears, while understandable, are unnecessary. PHP files are processed by, well, PHP before the output is sent to the client requesting whatever it is. So, basically, people won’t see the source unless you allow them to.

    You can sleep easy, for tonight is not the night that people will hack your gibson.

    Thread Starter tfmegatron

    (@tfmegatron)

    Thanks for the info. I have a PHP based internet store and that blocks any access to any file by default. That is what sparked my interest in the lack of such protection. Thank you though.

    Matt

    Thread Starter tfmegatron

    (@tfmegatron)

    I think Viper may have misunderstood me. You can actually goto my site and download any core file. http://www.mattstamp.com/weblog/
    This is what I am talking about. Not how the PHP is processed.

    Thread Starter tfmegatron

    (@tfmegatron)

    For all that may come across this I have found my answer.

    Make an .htaccess file and the only thing that is needed is:

    IndexIgnore */*

    This will make directories look empty when people browse them.

    The only directory I have seen to be browse-able is the base directory of wordpress.

Viewing 7 replies - 1 through 7 (of 7 total)

The topic ‘how to block access to core files’ is closed to new replies.