Forums

Blocking wp-content/themes (2 posts)

  1. thetattooedmama
    Member
    Posted 1 year ago #

    Is there a way to block your wp-content/themes folder so others cannot access it and see what themes you have uploaded?

  2. iridiax
    Member
    Posted 1 year ago #

    I put an index.html file in there with the following in it:

    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head profile="http://gmpg.org/xfn/11">
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
    <title>Sorry</title>
    <meta name="robots" content="noindex,follow"/>
    </head>
    <body>
    <div>Sorry, you are not allowed to browse this directory! Please return to the <a href="http://example.com/">home page</a>.</div>
    </body>
    </html>

    Replace example.com with your blog address.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.