Board index   FAQ   Search  
Register  Login
Board index php forum :: php coding PHP coding => Images

hide or modify image url

images php coding issues or problems here.

Moderators: macek, egami, gesf

hide or modify image url

Postby sergio_mi » 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
sergio_mi
New php-forum User
New php-forum User
 
Posts: 23
Joined: Thu Apr 22, 2004 7:00 am

Postby gesf » Fri May 21, 2004 2:45 am

No, you can´t hide that!
Change the script to create an apropriated url!
User avatar
gesf
Moderator
Moderator
 
Posts: 1718
Joined: Sun Dec 29, 2002 5:03 am
Location: Portugal / Sweden

Postby ruturajv » 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
ruturajv
php-forum Super User
php-forum Super User
 
Posts: 1280
Joined: Sat Mar 22, 2003 9:42 am
Location: Mumbai, India

Postby swirlee » 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.
User avatar
swirlee
Moderator
Moderator
 
Posts: 2272
Joined: Sat Jul 05, 2003 1:18 pm
Location: A bunk in the back

Re: hide or modify image url

Postby WiZARD » 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.... :?
User avatar
WiZARD
Moderator
Moderator
 
Posts: 1257
Joined: Thu Jun 20, 2002 10:14 pm
Location: Ukraine, Crimea, Simferopol


Return to PHP coding => Images

Who is online

Users browsing this forum: No registered users and 2 guests

Sponsored by Sitebuilder Web hosting and Traduzioni Italiano Rumeno and antispam for cPanel.