1
irmtfan
how to prevent pictures from pic hunters?
  • 2006/10/22 13:38

  • irmtfan

  • Module Developer

  • Posts: 3419

  • Since: 2003/12/7


I want to prevent some of my icons from image hunters.
how can i do it?
is this possible to store them in database instead of files?

2
irmtfan
Re: how to store a pic in database and load it?
  • 2006/10/23 8:26

  • irmtfan

  • Module Developer

  • Posts: 3419

  • Since: 2003/12/7


ok apart from database i find a way to store pics outside of http.

1- create img.php:
require 'mainfile.php' ;
if( ! 
defined'XOOPS_TRUST_PATH' ) ) die( 'set XOOPS_TRUST_PATH in mainfile.php' ) ;

$img_id = isset($_GET['img_id']) ? intval($_GET['img_id']) : 0;

echo 
'.XOOPS_TRUST_PATH.'/images/'.$img_id.'.gif" />'

?>

2- in mainfile.php define a path outside of http:
define('XOOPS_TRUST_PATH','/home/USERNAME/XOOPS_TRUST_path');


now i can put imgages XOOPS_TRUST_path/images directory as 1.gif , 2.gif and ... then call it in browser like this and it shows image:
DOMAIN/img.php?img_id=1

now i have 2 problems:
1- how to use it in a block?

2- how to prevent it from download by "save image as..." as mentioned here:

Quote:
Use the image as a background of a table and fill the cell with a transparent gif.
Similar to the #2 solution but without the CSS capabilities.







3
RachelVirago
Re: how to store a pic in database and load it?

I have seen this debate on many sites and frankly I dont think it can be done (at least never saw a method that worked).

http://www.htmlite.com/faq010.php

Bottom line is that either you are willing to display an image or not and if it's displayed on the users PC then they have the image, in cache usually.

There are many tricks but no matter how clever you get they can always fall back on screen dump/capture and crop.

Would be nice to be proved wrong though.

However in Image manager you do have the option to store images as binary blob data rather than image files
Being transgender is NOT a choice.

4
irmtfan
Re: how to store a pic in database and load it?
  • 2006/10/23 9:09

  • irmtfan

  • Module Developer

  • Posts: 3419

  • Since: 2003/12/7


Yes it doesnt work in a running site. and i cant found a way to put images outside of http and show them in background or
for example something like this:


Quote:
There are many tricks but no matter how clever you get they can always fall back on screen dump/capture and crop.

yes you are right but i just want to make it harder than a simple right click!

5
RachelVirago
Re: how to store a pic in database and load it?

I guess incorporating the well know no right click javascript into your page(s) is best then. you can get details and code examples a few clicks in from the link above.

If you do this it would be interesting to know where and how in your XOOPS you deploy it.

I prefer watermarking and dont really mind images being copied provided it's obvious where from.
Being transgender is NOT a choice.

6
irmtfan
Re: how to store a pic in database and load it?
  • 2006/10/23 9:34

  • irmtfan

  • Module Developer

  • Posts: 3419

  • Since: 2003/12/7


about watermark:
your right and i use watermark in most of pics
but some icons are too small.

about js:
i dont like it because:
1. anyone can disable js in browser and it is very easy.
2. it disable any right click but i dont want to disable right click for text copy and ...

7
RachelVirago
Re: how to store a pic in database and load it?

How about image sliceing into many small pieces with a program such as Adobe Image ready this means a right click save gets them only a tiny portion of your thumbnail.

If the slices are small enough (few pixels) viewers will have a great deal of trouble obtaining all the slices, much less putting them back together.

Often an offender will happily save away through the site and only when they come to browse the download directory.... WTF! roflmao.

When they look in cache, many many small bits, you can mess with the slice numbering also.

Still won't prevent screen capture though

I did this with some photoshop art I derived from original freehand work an artist friend did for me some years back.

The downside here is that you may have css/table positioning issues with different browsers (css was much simpler back then and not much used).

Worth a try? Hope so because I'm about out of ideas.
Being transgender is NOT a choice.

Login

Who's Online

312 user(s) are online (284 user(s) are browsing Support Forums)


Members: 0


Guests: 312


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Nov 30
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits