Author Topic: Pic Security  (Read 160590 times)

0 Members and 1 Guest are viewing this topic.

Offline V@no

  • If you don't tell me what to do, I won't tell you where you should go :)
  • Global Moderator
  • 4images Guru
  • *****
  • Posts: 17.849
  • mmm PHP...
    • View Profile
    • 4images MODs Demo
Re: Pic Security
« Reply #30 on: June 21, 2005, 01:01:30 AM »
Is there also a way to protect the thumbnails with the "hides location of the pictures and adds antileech" version?
sorry, not with this method.
This method allow save only one location per page.
Your first three "must do" before you ask a question:
Please do not PM me asking for help unless you've been specifically asked to do so. Such PMs will be deleted without answer. (forum rule #6)
Extension for Firefox/Thunderbird: Master Password+    Back/Forward History Tweaks (restartless)    Cookies Manager+    Fit Images (restartless for Thunderbird)

Offline lapinkulta

  • Newbie
  • *
  • Posts: 42
    • View Profile
    • Avatar Essentials
Re: Pic Security
« Reply #31 on: June 21, 2005, 08:27:20 AM »
I see. Any other way to protect the thumbnail path?
Greetings,
lapinkulta
Two hours of try and error can save ten minutes of manual reading.

Offline lapinkulta

  • Newbie
  • *
  • Posts: 42
    • View Profile
    • Avatar Essentials
Re: Pic Security
« Reply #32 on: July 03, 2005, 08:39:06 PM »
hi!

I use the "hides location of the pictures and adds antileech" codes from this thread and i'm very happy with it.
For registered users I would like to offer a possiblity to directly link to the images and give them the code to copy and paste like

Code: [Select]
<img src="....">
or maybe even with bb code etc.

How can this be done?

Greetings,
lapinkulta
Two hours of try and error can save ten minutes of manual reading.

Offline kief24

  • Sr. Member
  • ****
  • Posts: 267
    • View Profile
Re: Pic Security
« Reply #33 on: October 30, 2005, 08:11:00 AM »
Quote
I just wanted to share with the public with another way to secure pictures, that I made long time ago and successfuly have been using on my site. It hides location of the pictures and adds antileech as well.

it hides the location well, but when you save the pic with right-click (my site) , the picture only can be saved as .bmp, and no name of the picture is shown. :?

Offline V@no

  • If you don't tell me what to do, I won't tell you where you should go :)
  • Global Moderator
  • 4images Guru
  • *****
  • Posts: 17.849
  • mmm PHP...
    • View Profile
    • 4images MODs Demo
Re: Pic Security
« Reply #34 on: October 30, 2005, 04:07:59 PM »
it hides the location well, but when you save the pic with right-click (my site) , the picture only can be saved as .bmp, and no name of the picture is shown. :?
That is only in IE browsers, because it seems only IE obbeys site's requests not to cache images. Remove all "no-cache" headers from the code.
Your first three "must do" before you ask a question:
Please do not PM me asking for help unless you've been specifically asked to do so. Such PMs will be deleted without answer. (forum rule #6)
Extension for Firefox/Thunderbird: Master Password+    Back/Forward History Tweaks (restartless)    Cookies Manager+    Fit Images (restartless for Thunderbird)

Offline kief24

  • Sr. Member
  • ****
  • Posts: 267
    • View Profile
Re: Pic Security
« Reply #35 on: October 31, 2005, 10:50:08 AM »
I removed all "no-cache" headers from the code, but there seems to be no diffrence. The picture can not be saved as jpg, but only as bmp, and  picture name is not showing up when saving with right click.
ex : http://www.edupics.com/coloringpictures54.htm

only "no-cache" headers i found :

admin/checkimages
header("Expires: Mon, 26 Jul 1997 05:00:00 GMT");             // turn off caching

admin/adminfunctions
header ("Cache-Control: no-store, no-cache, must-revalidate");
header ("Cache-Control: pre-check=0, post-check=0, max-age=0", false);
header ("Pragma: no-cache");
header ("Expires: " . gmdate("D, d M Y H:i:s", time()) . " GMT"); 

--couldn't find any more "no-cache" headers--



Offline mawenzi

  • 4images Moderator
  • 4images Guru
  • *****
  • Posts: 4.500
    • View Profile
Re: Pic Security
« Reply #36 on: October 31, 2005, 01:59:29 PM »
... The picture can not be saved as jpg, but only as bmp ...

it is a problem with not only your MS-IE ... your Temporary-Internet-Files-Folder is too full ....  :?
go to : MS-IE -> Options -> Generally -> Temporary Internet Files -> Files delete
(or similarly ... I use a German Version ...  :wink: )

now the problem should be repaired ...

also to find here : http://support.microsoft.com/default.aspx?scid=kb;de;810978

Your first three "must do" before you ask a question ! ( © by V@no )
- please read the Forum Rules ...
- please study the FAQ ...
- please try to Search for your answer ...

You are on search for top 4images MOD's ?
- then please search here ... Mawenzi's Top 100+ MOD List (unsorted sorted) ...

Offline kief24

  • Sr. Member
  • ****
  • Posts: 267
    • View Profile
Re: Pic Security
« Reply #37 on: October 31, 2005, 02:04:53 PM »
no, i already tried that...
even if temporary-internet-files-folder is empty, picture only can be saved as .bmp

you can try it on
http://www.edupics.com/coloringpictures54.htm
i suppose you'll have the same problem. :?

if i try to save with firefox :
it saves the pictures as .gif with the name "show.php"

( the pics are jpg's )


i have the mod " Cache System for 4images v1.7 " installed on the site, but i supose this is not the problem, because if i disable the caching, problems stay the same

Offline mawenzi

  • 4images Moderator
  • 4images Guru
  • *****
  • Posts: 4.500
    • View Profile
Re: Pic Security
« Reply #38 on: October 31, 2005, 02:44:53 PM »
you can try it on
http://www.edupics.com/coloringpictures54.htm
i suppose you'll have the same problem. :?

if i try to save with firefox :
it saves the pictures as .gif with the name "show.php"

... you are right ...  8O
Your first three "must do" before you ask a question ! ( © by V@no )
- please read the Forum Rules ...
- please study the FAQ ...
- please try to Search for your answer ...

You are on search for top 4images MOD's ?
- then please search here ... Mawenzi's Top 100+ MOD List (unsorted sorted) ...

Offline V@no

  • If you don't tell me what to do, I won't tell you where you should go :)
  • Global Moderator
  • 4images Guru
  • *****
  • Posts: 17.849
  • mmm PHP...
    • View Profile
    • 4images MODs Demo
Re: Pic Security
« Reply #39 on: October 31, 2005, 02:48:17 PM »
Your server still sending
Quote
Expires: Thu, 19 Nov 1981 08:52:00 GMT
Cache-Control: no-store, no-cache, must-revalidate, post-check=0, pre-check=0
Pragma: no-cache
- that's why.

It could be the server's setup itself...dont know.
Your first three "must do" before you ask a question:
Please do not PM me asking for help unless you've been specifically asked to do so. Such PMs will be deleted without answer. (forum rule #6)
Extension for Firefox/Thunderbird: Master Password+    Back/Forward History Tweaks (restartless)    Cookies Manager+    Fit Images (restartless for Thunderbird)

Offline kief24

  • Sr. Member
  • ****
  • Posts: 267
    • View Profile
Re: Pic Security
« Reply #40 on: October 31, 2005, 03:19:09 PM »
i checked and on server side no caching is disabled.

i searched trough my entire site, nothing can be found that disables caching...
searched on the words cache, pragma, header, no-cache, ......nothing.

 :? :?



Offline V@no

  • If you don't tell me what to do, I won't tell you where you should go :)
  • Global Moderator
  • 4images Guru
  • *****
  • Posts: 17.849
  • mmm PHP...
    • View Profile
    • 4images MODs Demo
Re: Pic Security
« Reply #41 on: October 31, 2005, 03:28:35 PM »
I had the same problem ones, and turned out I had to change something in the php.ini or in apache config.conf I cant remmember exactly now...
For now, can I see your phpinfo?

[edit]
I think it was in php.ini I had to comment out this line:
Code: [Select]
session.cache_limiter = nocache[edit2]
if that is the reason, try add on top of global.php:
Code: [Select]
session_cache_limiter('none');
Your first three "must do" before you ask a question:
Please do not PM me asking for help unless you've been specifically asked to do so. Such PMs will be deleted without answer. (forum rule #6)
Extension for Firefox/Thunderbird: Master Password+    Back/Forward History Tweaks (restartless)    Cookies Manager+    Fit Images (restartless for Thunderbird)

Offline kief24

  • Sr. Member
  • ****
  • Posts: 267
    • View Profile
Re: Pic Security
« Reply #42 on: October 31, 2005, 08:54:01 PM »
the adding of the code on top of global.php didn't work

i removed the modifications.
if you print trough right click or copy and paste to Word, the error message was shown.... :?


just curious,

you wrote in the lightbox-for-guests mod :
Quote
and this are the headers from my site:
Quote
HTTP/1.1 302 Found
Date: Sun, 10 Apr 2005 17:29:59 GMT
Server: Apache/2.0.53 (Unix)
Set-Cookie: PHPSESSID=pnabxOCw05f9EyIqnnvlIpkOsL9; path=/
Expires: Thu, 19 Nov 1981 08:52:00 GMT
Cache-Control: no-store, no-cache, must-revalidate, post-check=0, pre-check=0
Pragma: no-cache

Set-Cookie: 4images_lightbox=s%3A0%3A%22%22%3B; expires=Sat, 09 Jul 2005 17:29:59 GMT; path=/
Set-Cookie: 4images_lightbox_lastaction=i%3A1113154199%3B; expires=Sat, 09 Jul 2005 17:29:59 GMT; path=/
Location: ./templates/vano/images/lightbox_no.gif
Content-Length: 0
Connection: close
Content-Type: image/gif

that's the same code as sent by my server, preventing the caching :
Expires: Thu, 19 Nov 1981 08:52:00 GMT
Cache-Control: no-store, no-cache, must-revalidate, post-check=0, pre-check=0
Pragma: no-cache


do you know where that/your code was generated ?


Offline V@no

  • If you don't tell me what to do, I won't tell you where you should go :)
  • Global Moderator
  • 4images Guru
  • *****
  • Posts: 17.849
  • mmm PHP...
    • View Profile
    • 4images MODs Demo
Re: Pic Security
« Reply #43 on: November 01, 2005, 12:08:16 AM »
do you know where that/your code was generated ?

I think it was in php.ini I had to comment out this line:
Code: [Select]
session.cache_limiter = nocache
But again, I'd like to see your phpinfo
Your first three "must do" before you ask a question:
Please do not PM me asking for help unless you've been specifically asked to do so. Such PMs will be deleted without answer. (forum rule #6)
Extension for Firefox/Thunderbird: Master Password+    Back/Forward History Tweaks (restartless)    Cookies Manager+    Fit Images (restartless for Thunderbird)

Offline kief24

  • Sr. Member
  • ****
  • Posts: 267
    • View Profile
Re: Pic Security
« Reply #44 on: November 01, 2005, 08:57:16 AM »
My domain is on shared server so i do not have access to the php.ini file