Advanced search  

News:

CPG Release 1.6.26
Correct PHP8.2 issues with user and language managers.
Additional fixes for PHP 8.2
Correct PHP8 error with SMF 2.0 bridge.
Correct IPTC supplimental category parsing.
Download and info HERE

Pages: 1 2 [3]   Go Down

Author Topic: Anti-Copy Mod : Complete Image Overlay, Hide Image Links, and other features...  (Read 53928 times)

0 Members and 1 Guest are viewing this topic.

pftq

  • Contributor
  • Coppermine frequent poster
  • ***
  • Offline Offline
  • Posts: 111

Yes, you have to change the settings to match your site.

Example: sitename.com would actually be the name of your site

/gallery/albums/ should actually be the path to your albums folder.
Logged

wuschel_lux

  • Translator
  • Coppermine regular visitor
  • **
  • Offline Offline
  • Gender: Male
  • Posts: 93
    • volleyball.lu - photo gallery & shop

I cahange it to
Code: [Select]
#Deny access to image files for those who figure out the code

RewriteEngine on

RewriteBase /albums/ #Path to pictures

RewriteCond %{HTTP_HOST} !^http://www.test.volleyball.lu/.*$ [NC]

RewriteCond %{HTTP_REFERER} !^http://www.test.volleyball.lu/.*$ [NC]
RewriteCond %{HTTP_REFERER} !^https?://12.34.56.7890/.*$ [NC]  # This is site ip address, optional

RewriteCond %{REQUEST_URI} ^.*\.(gif|GIF|jpe?g|png|JPE?G|PNG)$

ReWriteRule (.*) /404 [L] # Where to send those snooping bastards...

But no result.
Logged

pftq

  • Contributor
  • Coppermine frequent poster
  • ***
  • Offline Offline
  • Posts: 111

The IP address also has to be fixed, but let's focus on one issue at a time.

It's possible your server is not allowing the filetype to be added for whatever reason.  You can try adding the filetype extension .jfASjaweaxSPAt with MIME: application/x-httpd-php if you know how.

Otherwise try changing the extension of the jfASjaweaxSPAt file to .php instead and change it accordingly in the other files.

Remove the .htaccess files altogether and let me know what happens.
Logged

wuschel_lux

  • Translator
  • Coppermine regular visitor
  • **
  • Offline Offline
  • Gender: Male
  • Posts: 93
    • volleyball.lu - photo gallery & shop

So I fixed the IP Address... Nothing changed

so now I changed the extension to .php and also changed it in imagix.php (included in themes).

Result, the pics are now shown on the site.
This are the good news but if I can access the file while typing the URL. But this is the main fuction I need.

If you want, I can you give access to the test site ... Just let me know, so I can send it by PM.
Logged

pftq

  • Contributor
  • Coppermine frequent poster
  • ***
  • Offline Offline
  • Posts: 111

You can still hide the original files with the htaccess.  I just wanted to isolate the issue first.

But since the filetype does not get added anyways, you can remove the lines in the htaccess above:

#Deny access to image files for those who figure out the code

Have only one copy of the .htaccess, which should be in albums/ as originally.
Logged

wuschel_lux

  • Translator
  • Coppermine regular visitor
  • **
  • Offline Offline
  • Gender: Male
  • Posts: 93
    • volleyball.lu - photo gallery & shop

jep this is good. Thanks a lot.

I let a copy of the htacces file in the album directory. I also change the "active" htacces to:
Code: [Select]
#Set your site to recognize your custom php file, if you change the extension

AddType application/x-httpd-php .jfASjaweaxSPAt.php

AddHandler application/x-httpd-php .jfASjaweaxSPAt.php

Now it seams to work. Maybe you can double check this. Great thanks!
Logged

tymex

  • Coppermine newbie
  • Offline Offline
  • Gender: Male
  • Posts: 3
    • Torun Pictures

why on my page, in firefox thumbs are shown good, and in IE7 its shown a blank images (image.gif) ?
thanks for reply :]
Logged
Hello World

pftq

  • Contributor
  • Coppermine frequent poster
  • ***
  • Offline Offline
  • Posts: 111

A link to your gallery would help. ;)

Do you see the same problem on my gallery here? www.pftq.com/gallery/
Logged
Pages: 1 2 [3]   Go Up
 

Page created in 0.02 seconds with 20 queries.