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: ZB Block  (Read 680 times)

0 Members and 1 Guest are viewing this topic.

Irondutchess

  • Coppermine newbie
  • Country: gb
  • Offline Offline
  • Gender: Male
  • Posts: 10
    • Joshua Cassim's Website & Gallery
ZB Block
« on: June 16, 2020, 03:38:07 pm »

Hi,

Has anyone successfully installed ZB Block https://zb-block.net/ into Coppermine? I would like to know how they did it. Basically what I need to know is, is there a .php file that always gets included before any page load?  I can then put the line of code that calls ZB Block at the top of that page so it is implemented before any page is loaded.
Logged

ron4mac

  • Dev Team member
  • Coppermine addict
  • ****
  • Country: us
  • Offline Offline
  • Posts: 1573
Re: ZB Block
« Reply #1 on: June 16, 2020, 04:10:47 pm »

A simpler solution that can be effective is a problem solving captcha.

The secret is to have good Q&A's.
See some ideas here: https://www.phpbb.com/community/viewtopic.php?t=2170168
Logged

Irondutchess

  • Coppermine newbie
  • Country: gb
  • Offline Offline
  • Gender: Male
  • Posts: 10
    • Joshua Cassim's Website & Gallery
Re: ZB Block
« Reply #2 on: June 16, 2020, 04:34:53 pm »

Thanks for the reply.

The problem with captcha is it will stop everything that can't solve it.  ZB-Block has a black and a white list so you can choose what can and can't access the site. Also if your site doesn't require a login to view sections of it, then captcha isn't a solution.
Logged

ron4mac

  • Dev Team member
  • Coppermine addict
  • ****
  • Country: us
  • Offline Offline
  • Posts: 1573
Re: ZB Block
« Reply #3 on: June 16, 2020, 05:26:04 pm »

The earliest .php file that you could use is your theme's theme.php file. I see you are using the included curve theme. So you would have to copy it as a different folder (or rename it) so it wouldn't get overwritten by a CPG update.
Logged

Irondutchess

  • Coppermine newbie
  • Country: gb
  • Offline Offline
  • Gender: Male
  • Posts: 10
    • Joshua Cassim's Website & Gallery
Re: ZB Block
« Reply #4 on: June 16, 2020, 06:32:34 pm »

Adding the code to theme.php didn't work. After some experimenting adding the code to include/init.inc.php gets ZB Block working on all pages in the site including the login page.

So if anyone else wants to implement ZB Block that's the file to use.
Logged
Pages: [1]   Go Up
 

Page created in 0.016 seconds with 20 queries.