Jump to content

image hide path

Recommended Posts

Here's a simplified example

<img src="data:image/png;base64,<?php echo base64_encode(file_get_contents("../../image.jpg")) ?>" alt="">

It's base64 encoded, the original path won't be viewable, just the encoding of image.

  • Like 1

Share this post

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now