#1 2025-08-16 21:54:39

deljones
Member
2012-09-06
78

Direct access not allowed - Message with first visit, new browser

Hello everyone.

Looking for some advice here with Piwigo, my favourite photo library..!

Recently, when going to my Piwigo site: https://derekjones.net/photos, there is a line of text at the top that says, "Direct access not allowed." If you refresh the page, it's fine, and it also works if you go back to the site later without closing the browser.

I've no idea where to start with this one. Can anyone help?

Best wishes to you all...

Dj

Piwigo 15.6.0 Check for upgrade
Installed on 5 January 2022, 3 years 7 months 1 week 4 days ago
Operating system: Linux
PHP: 8.0.30 (Show info) [2025-08-16 20:51:45]
MySQL: 10.11.11-MariaDB-0+deb12u1 [2025-08-16 20:51:45]
Graphics Library: ImageMagick ImageMagick 6.9.11-60
Cache size 1053.31 MB   calculated right now. Refresh


Activated plugin list18
About 1 menu
AlwaysShowMetadata
AStat.2
Batch Downloader
Bot Protection
Contact 1 menu
Contact Form
Exif View
Memories
meta
OpenStreetMap
Permalink Generator
Perso About
Perso Footer
Read Metadata
Simple Copyright
SmartAlbums
Tag Groups

https://derekjones.net/photos

Offline

 

#2 2025-08-16 22:06:02

deljones
Member
2012-09-06
78

Re: Direct access not allowed - Message with first visit, new browser

Found the problem....

If I disable the plugin "Bot Protection", the problem goes away. I discovered that the plug-in, for me, is faulty. If I try the settings, I get:


Warning: Constant BOT_PROTECTION_IP_LOG already defined in /var/www/piwigo__3/plugins/bot_protection/admin/bot_protection_admin.php on line 11

Fatal error: Allowed memory size of 67108864 bytes exhausted (tried to allocate 65014880 bytes) in /var/www/piwigo__3/plugins/bot_protection/admin/bot_protection_admin.php on line 132

It's disabled for now, and the problem has gone away.

Best regards

Dj

Offline

 

#3 2025-08-17 00:00:26

Katryne
Member
Provence, France
2016-12-03
608

Re: Direct access not allowed - Message with first visit, new browser

In the first tab of the Bot protection plugin, there is a checkbox: try unchecking it and you should no longer have this problem. I can't seem to set this configuration to English on my website, but in French, it is:

Paramètres de protection contre les bots (Bloque les accès sans referer ni cookies – comportement typique des bots automatisés.)
Bloquer l’accès sans referer ni cookies

meaning :
Bot protection settings (Blocks access without referrers or cookies – typical behavior of automated bots.)
Block access without referrers or cookies


https://album.chauvigne.info/ v.16.4  PHP: 8.4.23
Système d'exploitation: Linux - Hébergeur 1&1-Ionos - MySQL: 5.7.42
Bibliothèque graphique: External ImageMagick 6.9.11-60

Offline

 

#4 2025-08-17 00:22:38

deljones
Member
2012-09-06
78

Re: Direct access not allowed - Message with first visit, new browser

Hello Katryne, and many thanks for your reply. Next time I am in the admin I will try your suggestion and see what happens. I will let you know.

Many thanks and enjoy the rest of the weekend

Dj

Offline

 

#5 2025-08-17 13:41:48

deljones
Member
2012-09-06
78

Re: Direct access not allowed - Message with first visit, new browser

Hello.

When I click on the settings gog of the Bot Protection plugin, sadly I get the following:

--------
Warning: Constant BOT_PROTECTION_IP_LOG already defined in /var/www/piwigo__3/plugins/bot_protection/admin/bot_protection_admin.php on line 11

Fatal error: Allowed memory size of 67108864 bytes exhausted (tried to allocate 65065072 bytes) in /var/www/piwigo__3/plugins/bot_protection/admin/bot_protection_admin.php on line 132
--------

Seems it doesn't want to play with my installation.

Best wishes

Dj

Offline

 

#6 2025-09-01 18:01:34

linkingpin
Member
2023-04-24
36

Re: Direct access not allowed - Message with first visit, new browser

Perhaps you should contact the developer of this plugin.

He has his own website where he publishes this plugin.

On it there is a contactform at https://www.blockyoubots.com/message.php

Or replay at his post on this forum where he introduces his plugin: https://piwigo.org/forum/viewtopic.php?id=34308&p=1

btw, looked at your website, it's really nice.

Last edited by linkingpin (2025-09-01 18:03:25)

Offline

 

#7 2025-09-02 11:52:49

deljones
Member
2012-09-06
78

Re: Direct access not allowed - Message with first visit, new browser

@linkingpin. Thanks very much for your help. Yes, today I replayed the post to the developer. I shall see how that goes.

Thank you very much for your kind words about the site. As usual, it's a work in progress.

Kind regards

Dj

Offline

 

Board footer

Powered by FluxBB