Author Topic: Pic Security  (Read 160487 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 #90 on: February 25, 2006, 09:57:34 AM »
If one can remmember 32 random letters and numbers in that one second, then hell, let him have the picture! :lol:

If you really want to hide the address, just search google, there are plenty javascripts that can do that. (the bottom part of the browser called "status bar" ;))
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 tohave

  • Newbie
  • *
  • Posts: 13
    • View Profile
Re: Pic Security
« Reply #91 on: March 28, 2006, 11:15:09 PM »
Hi

Thanks VA@NO for this great job you have done so far, it was what I wanted. But I have a problem. When user wants to send e-card, this message comes up:

Parse error: parse error, unexpected ',' in /home/baybak/public_html/cardaz/postcards.php on line 149

I heve modified it as you have written, rest is OK but this one !!

If I put the original file back, it works but it shows the URL of images that I do not want to.
.

Offline tohave

  • Newbie
  • *
  • Posts: 13
    • View Profile
Re: Pic Security
« Reply #92 on: March 28, 2006, 11:34:51 PM »
Hi again,

There was a problem in implementing the codes, SHAME I did not see it first, an extra "," . now I fixed it and the page shows properly.

 :D :oops:

Offline tohave

  • Newbie
  • *
  • Posts: 13
    • View Profile
Re: Pic Security
« Reply #93 on: March 29, 2006, 12:24:48 AM »
I got it work.

I have realised problems in e-card function (postcard.php) that is out of the coverage of your PIC security.

1- the URL is easy to be seen in source code (I have right click prevented) but View > Source is working
2- the image is being downloaded (just in e-card, not in other pages)
.

Offline potyka

  • Pre-Newbie
  • Posts: 3
    • View Profile
Re: Pic Security
« Reply #94 on: March 31, 2006, 08:51:28 PM »
Hi!
That unfasten may be have to does not team so that does he not record the users the 4images-?

Offline antonio2005

  • Newbie
  • *
  • Posts: 11
    • View Profile
Re: Pic Security
« Reply #95 on: April 10, 2006, 12:37:19 PM »
Hi,

Great mod.
I´ve instaled, and it works 100%.

The only question for this mod is:

Is there any way to use the mod among with "smaller detail picture (to save traffic)" --> phpthumb.php ??

Regards,
Antonio

Offline mark1491

  • Newbie
  • *
  • Posts: 25
    • View Profile
Re: Page 4
« Reply #96 on: August 08, 2006, 09:37:09 PM »

P.S. this method has few down-sides:
- the script returns the original media path when the media is not an image (.avi, .zip, etc) or when media is remote.

I am a little confused, Does this mean that if I only have videos on my site, that this mod would work at all for protecting my wmv videos?

Thanks,
Mark

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 #97 on: August 09, 2006, 12:37:40 AM »
Well, kind of...it will not show the reall path in the page source, but when the "fake" file accessed, the script will send redirection to the reall path. So, theoreticaly if you try open the "fake" address directly in the browser, you might be able see the real path (it depence on the browser and its settings).

But if you are having problem with this, you can try replace
Code: [Select]
    if (!$image_info = @getimagesize($file) || is_remote_file($file) || !$mime = $mime_type_match[get_file_extension($file)][0])
With:
Code: [Select]
    if (is_remote_file($file) || !$mime = $mime_type_match[get_file_extension($file)][0])
It will not redirect to real path, as long as the file is local (not remote) and its mime type present in upload_definitions.php (which it should)

But, be careful with this, if the file is too big, your server might run out of memory and fail
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 mantra

  • Sr. Member
  • ****
  • Posts: 358
    • View Profile
    • DREAM WITH MANTRA
Re: Pic Security
« Reply #98 on: October 29, 2006, 06:59:11 AM »
any chance we can add your security mood [ show.php ] on new version of 4images 1.7.4.
i try allready but i got error on
=========================
Code: [Select]
   
[color=Red]this line is 540  ->[/color]    "media_src" => ($encrypt) ? ROOT_PATH."show.php?pic=".encrypt_add($media_src) : $media_src,
      "media_src_original" => $media_src,
      "media_icon" => $media_icon,

the browser said :
Parse error: parse error, unexpected T_STRING, expecting ')' in C:\myweb\htdocs\dream\includes\functions.php on line 540

i'm using PHP Version 5.1.6


Offline SoftDux

  • Newbie
  • *
  • Posts: 18
    • View Profile
    • SoftDux - The Leaders in Software & Networking
Re: Pic Security
« Reply #99 on: May 05, 2007, 04:19:05 PM »
Thanx for the great tips :)
Visit these Website:  SA WebHosting Talk || SoftDux

Offline ttluan

  • Pre-Newbie
  • Posts: 8
    • View Profile
Re: Pic Security
« Reply #100 on: July 14, 2007, 12:16:26 PM »
I installed the mod "hides location of the pictures and adds antileech" , it have no error but doesn't work.

I view in page source code i still see the real path name such as : the string " url(./data/media/3/DSC_4743.jpg) " in details.php in source code .

I use 4images 1.7.4, IE 7.0  & Firefox 2.0.0.4

Pls help me. I really need it to protect my images.

Thanks

Offline sid3000

  • Pre-Newbie
  • Posts: 1
    • View Profile
Re: Pic Security- How this code will work on wap browser?
« Reply #101 on: July 25, 2007, 06:52:39 PM »
Hi,
How this code will work on wap browser? Whereas most wap browser does not support cookies.

Offline IWS_steffen

  • Full Member
  • ***
  • Posts: 128
    • View Profile
    • Kreuzfahrtschiffe gestern und heute
Re: Pic Security
« Reply #102 on: May 08, 2008, 10:52:04 PM »
Cooler MOD.

Klappt super

Dickes Danke - Gruß Steffen

Offline d1eter

  • Newbie
  • *
  • Posts: 42
    • View Profile
Re: Pic Security
« Reply #103 on: September 08, 2008, 08:38:36 AM »
Hi all...,

I'm very new to this 4images and PHP things..
really great software.., easy to setup and runs in no time.

configuring.. and security needs more patience..

anyway..,
I've seen sites where we cannot right click and save images..
when we right click it only shows a small gif file.
I'd like to implement this setting to my group's website.. batamphotoclub.co.cc

really appreciate if anybody is kind enough to direct me to a site / docs of how to get it setup..
I've looked at Pic Security thread.., but can't seems to find that settings.

thank you!

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 #104 on: September 08, 2008, 10:42:45 AM »
I've seen sites where we cannot right click and save images..
when we right click it only shows a small gif file.

I think this is what you are looking for:
mask the {media_src} url
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)