hide or modify image url

images php coding issues or problems here.

Moderators: egami, macek, gesf

Post Reply
sergio_mi
New php-forum User
New php-forum User
Posts: 23
Joined: Thu Apr 22, 2004 7:00 am

Fri May 21, 2004 1:30 am

in an html page a jpeg is generated by a php page:
<img src="imgCreator.php?var=2">
right click -> property on the image you can see its url:
http://www.sitename.com/img/common/imgC ... var=2.jpeg.
I'd like to if there's a way to hide or modify the image url.
something like http://www.sitename.com/
if in the meantime i find a solution I'll post it
thanks

User avatar
gesf
Moderator
Moderator
Posts: 1716
Joined: Sun Dec 29, 2002 5:03 am
Location: Portugal / Sweden
Contact:

Fri May 21, 2004 2:45 am

No, you can´t hide that!
Change the script to create an apropriated url!
Sincerely,
Gonçalo "gesf" Fontoura

gesf.org | sessionstart.com | urlms.com

User avatar
ruturajv
php-forum Super User
php-forum Super User
Posts: 1279
Joined: Sat Mar 22, 2003 9:42 am
Location: Mumbai, India
Contact:

Sun May 23, 2004 8:07 pm

you can apply some hash/encryption methods to access that url, to prevent the users from using it.

User avatar
swirlee
Moderator
Moderator
Posts: 2257
Joined: Sat Jul 05, 2003 1:18 pm
Location: A bunk in the back
Contact:

Mon May 24, 2004 6:09 am

ruturajv wrote:you can apply some hash/encryption methods to access that url, to prevent the users from using it.


No, practically speaking, you can't. The best you could do is check the referrer to keep it from being linked to from other sites.
Image

User avatar
WiZARD
Moderator
Moderator
Posts: 1240
Joined: Thu Jun 20, 2002 10:14 pm
Location: Ukraine, Crimea, Simferopol
Contact:

Mon May 24, 2004 11:02 am

sergio_mi wrote:in an html page a jpeg is generated by a php page:
<img src="imgCreator.php?var=2">
right click -> property on the image you can see its url:
http://www.sitename.com/img/common/imgC ... var=2.jpeg.
I'd like to if there's a way to hide or modify the image url.
something like http://www.sitename.com/
if in the meantime i find a solution I'll post it
thanks

interesting what for?
I think what better launch roket in the space.... :?
"Sex,Drugs and Rock&Roll " replaced at "Sucks,Bugs and Plug&Play";
Image

Post Reply