WordPress.org

Support

Support » How-To and Troubleshooting » Hide absolut path to WP installation directory

Hide absolut path to WP installation directory

  • Hello, I hope my question hasn’t been asked before, I tried searching the post as well as Google for a solution. Perhaps I wasn’t using the right words to describe my problem.

    The Question:
    Is there a way to hide the “absolute path” of your installation directory on uploads to a WP site. For example: If I have a installation at the WordPress Address (URL) example.com/wordpress/ and the Site Address (URL) example.com/, when I upload media, the link to the media shows the full WP address like this example.com/wordpress/wp-content/uploads/image.jpg. What I want to achieve is for the “wordpress” directory to not be shown.
    It is for security reasons I don’t want the full path to be shown. It would be even nicer if I could hid the “wp-content” as well.

Viewing 6 replies - 1 through 6 (of 6 total)
  • So has nobody with knowledge read my post or just cared not to answer. I understand that wordpress has to hard code the images but does that have to show up on the recipient’s end?

    Really disappointed in the participation in these posts. Maybe I just assumed the wordpress community was active and supportive.

    esmi

    @esmi

    Forum Moderator

    Is there a way to hide the “absolute path” of your installation directory on uploads to a WP site.

    No. If you had tried running some forum searches, you would have seen that this has been answered many, many, times previously.

    Hey @esmi, If you would have actually read my post you would have seen that I first posted that I indeed did search the forums with no avail, but thanks for the reply. Nothing came up on the various searches I typed in, but i think that is because I didn’t know the name of or how to describe my problem.

    Check this out: http://benword.com/how-to-hide-that-youre-using-wordpress/ Mainly the Roots rewrite.php is what interest me.
    This guy has done some things to conceal a lot of the things I was speaking about. It is a mod specifically for a specific theme, (Roots Theme) but it may be able to be adapted to do the same for my site. I’m not that good at coding anything beyond html & css so it will take me a lot of time to dissect what he has done but what do you think about what he has posted?

    Moderator Jan Dembowski

    @jdembowski

    Brute Squad and Volunteer Moderator

    It is for security reasons I don’t want the full path to be shown.

    That doesn’t really work as exploits work off of the code. Obscuring the path just doesn’t do anything.

    It would be even nicer if I could hid the “wp-content” as well.

    Now that part is doable within limits. Take a look at this article.

    http://codex.wordpress.org/Editing_wp-config.php#Moving_wp-content_folder

    You can’t hide it exactly but you can change it if you wanted to. Again it doesn’t really buy you anything and some themes and plugins will not work (they should) but there are a lot of things you can try via wp-config.php.

    NOTE: if you do poke at your installation that way keep full DB and file backups handy just in case.

    Hello @jan, thanks for your reply. You’ve really cleared up a bit as to “why” some of the things I wanted to implement won’t work. Yea I’m not going to worry about the content folder location or name. Now that I see now how little that will gain.
    I still am going to try a few things listed in the link I posted in my other reply, they have a way to “hide” theme files and plugin directory locations.

    It’s pretty wild that the seemingly simple things usually are the most complex lol.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Hide absolut path to WP installation directory’ is closed to new replies.
Skip to toolbar