Advanced search  

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]

Pages: [1]   Go Down

Author Topic: Disallow external access to Coppermine?  (Read 4017 times)

0 Members and 1 Guest are viewing this topic.

lordgix

  • Coppermine newbie
  • Offline Offline
  • Posts: 1
Disallow external access to Coppermine?
« on: January 31, 2006, 03:22:33 pm »

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 ;)
Logged

casNuy

  • Moderator
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 671
  • My other hobby
    • Nuy Community
Re: Disallow external access to Coppermine?
« Reply #1 on: January 31, 2006, 08:33:45 pm »

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
Logged
Pages: [1]   Go Up
 

Page created in 0.035 seconds with 19 queries.