• hello Developers… I’m an initiating WP user… I need help to mask the full path of the images from my site, from code and from browser footer bar…
    There is a way without pluglins? (for example: htaccess or changing the code)

    • This topic was modified 6 years, 7 months ago by Jan Dembowski. Reason: Moved to Fixing WordPress, this is not a Developing with WordPress topic

    The page I need help with: [log in to see the link]

Viewing 5 replies - 1 through 5 (of 5 total)
  • Moderator Steven Stern (sterndata)

    (@sterndata)

    Volunteer Forum Moderator

    what do you mean by “mask the full path”? Do you mean hide the “wp-content/uploads/whatever” part? If so, why?

    Thread Starter jmoliver

    (@jmoliver)

    it’s almost there…
    I don’t know if “hide” is possible, but I don’t like to show my full path becouse we know that there are scripts to exploit it…

    Moderator Steven Stern (sterndata)

    (@sterndata)

    Volunteer Forum Moderator

    Your images need to be publicly viewable, so you must present some public path. You gain no security by remapping and risk breaking a lot of stuff.

    Moderator bcworkz

    (@bcworkz)

    You’re trying to implement “security by obscurity” which is not security at all though it’s tempting to think it is. If your server is properly configured, there is nothing an attacker can gain by knowing where your images are.

    That said, you can relocate (not hide) the uploads folder to a non-standard location, as long as it’s still within the WP folder structure. There are a few reasons one might want to do this, none of them is for added security. It might stymie a few script kiddies though.
    https://ww.wp.xz.cn/support/article/editing-wp-config-php/#moving-uploads-folder

    • This reply was modified 6 years, 7 months ago by bcworkz. Reason: deter oEmbeding of link
    Thread Starter jmoliver

    (@jmoliver)

    thank you guys… I will move my upload folder

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

The topic ‘mask image full path’ is closed to new replies.