Anti-Copy Mod : Complete Image Overlay, Hide Image Links, and other features... - Page 3 Anti-Copy Mod : Complete Image Overlay, Hide Image Links, and other features... - Page 3
 

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

Main Menu

Anti-Copy Mod : Complete Image Overlay, Hide Image Links, and other features...

Started by pftq, August 03, 2007, 12:54:41 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

pftq

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.

wuschel_lux

I cahange it to
#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.

pftq

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.

wuschel_lux

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.

pftq

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.

wuschel_lux

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:
#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!

tymex

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

pftq

A link to your gallery would help. ;)

Do you see the same problem on my gallery here? www.pftq.com/gallery/