Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 162
  • Last Modified:

is it posible to hide url paths

is possible to hide url paths so if some one right clicks on the picture on my site cannot see the location/Path
0
Zirwo01
Asked:
Zirwo01
  • 4
  • 3
1 Solution
 
HainKurtSr. System AnalystCommented:
NO! unless you create a custom page which serves the image like

<img src="getImg.asp?id=2423">

but this time, if somebody just types

http://domain.com/somepath/getImg.asp?id=2423

they get the image, unless in this page you also check some cookies, session variebles etc... if user is authonticated, then send the image (read the file, binary write) o/w just send a blank image or an image that says "you are not authonticated bla bla..."
0
 
Hugh McCurdyCommented:
Can you give more information?  What are you trying to protect?  Are you trying to keep people from downloading photos?

It's not completely possible because the browser downloaded the photo to display it.  
0
 
Zirwo01Author Commented:
I am streamingmusic and I am trying to hide the path to the music folder
0
Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
Hugh McCurdyCommented:
What's the server O/S?  If it's Linux or other Unix, I have an idea.
0
 
Zirwo01Author Commented:
it is hosted by Godaddy.com I believe is windows base server.
0
 
Hugh McCurdyCommented:
Based on it being GoDaddy, I suspect HainKurt's might be the best.

You could look at what Sports Illustrated did with people attempting to download the swimsuit model images.  You could go there and right click on the image, save it and then open it to find out you don't have a picture of a model.  If, however, you view page info, you can find the actual location of the picture.  So, if you used their method, people could still find the location.

Serving music is a bit different.  I don't know if this is possible using GoDaddy, but I could do it on my employer's Linux server.  I'd "copy" the music into a queue.  By "copy" I wouldn't actually copy the files.  I'd make a queue that really was symbolic links and then serve them.  (And erase links already served -- which shouldn't even affect the original.)

You'd need to be able to execute shell commands and have an understanding of Linux (or some Unix).


I'm sure there are other approaches but I don't know what they are.
0
 
Zirwo01Author Commented:
Thanks......

One more question.

What about hiding http://theonlinebeatz.com/music/bachata/ so the address bat only shows http://theonlinebeatz.com
0
 
Hugh McCurdyCommented:
You might be able to do something like that if you used $_POST.  Someone like me could figure out what you did an bypass it though.  (I wouldn't but someone else with my skills could.)

The main page would have to be index.php and be a PHP script that either served the main page or served the file.  Still, it's going to be tricky to hide it.
0

Featured Post

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

  • 4
  • 3
Tackle projects and never again get stuck behind a technical roadblock.
Join Now