Disallow external access to Coppermine? Disallow external access to Coppermine?
 

News:

cpg1.5.48 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter a recently discovered vulnerability. It is important that all users who run version cpg1.5.46 or older update to this latest version as soon as possible.
[more]

Main Menu

Disallow external access to Coppermine?

Started by lordgix, January 31, 2006, 03:22:33 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

lordgix

Hi, I'm using pnCPG 3.2 and Coppermine 1.4.2 and I read somewhere there was a little hack so that Coppermine couldn't be accesed directly via web, so that everyone who wants to see the Coppermine web has to first go to my web and use the link there. Could someone give me a link to it? thnx ;)

casNuy

Read the docs, it is in there.
Quote
Only PostNuke access
====================
In addition one needs to change a few files in Coppermine to have people always routed through pnCPG.
Insert the following code :
if (!USER_ID) cpg_die(ERROR, '<a href=../index.php?module=pnCPG&func=main target=_top>Click here to access the Gallery</a>', __FILE__, __LINE__);
into the following files :
index.php, thumbnails.php, search.php, dispaly(image/card).php and showthumb.php
Insert this code just after :
require('include/init.inc.php');

Cas