6 replies
  • WEB DESIGN
  • |
I want to hide a URL, how can I do it.

Example:-

1) I have a Image Loaded on my File Manager. (resources/xyz.jpg)
2) I want to Link that Image to a URL but I do not want the URL to be seen in any way by the Visitor. (www.someurl.com)

How can I do this. Please help
#hide #url
  • Profile picture of the author webpeon
    So you are wanting for an example to give someone a url which says something like www.thisisntwheremyimageislocated.com and have it show your image in that page? is that right?
    Signature
    Web 2 Mobile
    The Future of The Web
    {{ DiscussionBoard.errors[6667893].message }}
  • Profile picture of the author ALicenseToCode
    You cannot conceal the source of a file that is delivered to a visitor. The file is delivered across the internet and the browser knows exactly where it came from. You can rewrite your urls using htaccess on your end to help hide your actual directory structure (This isn't a bad idea), but the user will still be able to get a url for your image.

    All resources on a page are loaded directly from the urls your site gives to the visitors' browser. So you can use htaccess to make /images/[FILENAME].jpg go to /hiddenpath/[FILENAME].jpg

    You could write a script to generate a new name for the same image on every page load, but that will get complicated pretty quickly. If you just want to prevent hotlinking you can do that easily in the htaccess file, just google "Prevent image hotlinking htaccess"
    {{ DiscussionBoard.errors[6668271].message }}
  • Profile picture of the author shantanu
    @ ^^

    Completely agree with ur view sir.
    {{ DiscussionBoard.errors[6668328].message }}
  • Profile picture of the author YongC
    I thinks this helpful for you :

    if you want to hide image path you can try it :

    Read image from your hosting and convert it to base64
    and then :

    <img src="data:image/png;base64,[PRINT YOUR DATA IMAGE BASE 64 HERE]" alt="Test">
    {{ DiscussionBoard.errors[6668435].message }}
    • Profile picture of the author TopicSpan
      Originally Posted by YongC View Post

      I thinks this helpful for you :

      if you want to hide image path you can try it :

      Read image from your hosting and convert it to base64
      and then :

      <img src="data:image/png;base64,[PRINT YOUR DATA IMAGE BASE 64 HERE]" alt="Test">
      You'll end up with an HTML file that is massive (bas64 is inherently inefficient when it comes to storing data) and you will seriously impact load times due to the rendering overhead (WebKit hates base64 images for this reason).

      It's a good suggestion, though, if there is a single specific image that needs to be "hidden", but not for every image on the site
      Signature
      Don't lose users!
      Grab our full-page UltraCache system that instantly speeds up any PHP website!
      {{ DiscussionBoard.errors[6669240].message }}
  • Profile picture of the author mwds120
    You could try to encrypt the URL, perhaps with the use of a plugin.
    Signature

    Indianapolis houses for sale at msWoods.com - m.s.Woods Real Estate LLC. About Indianapolis at | FunCityFinder.com

    {{ DiscussionBoard.errors[6670467].message }}

Trending Topics