Forums / General / Blacklist implementation question

"Please Note:
  • At the specific request of Ibexa we are changing this projects name to "Exponential" or "Exponential (CMS)" effective as of August, 11th 2025.
  • This project is not associated with the original eZ Publish software or its original developer, eZ Systems or Ibexa".

Blacklist implementation question

Author Message

Betsy Gamrat

Sunday 24 April 2011 3:36:04 pm

I have a small snippet of code that I use to deny access to a site based on the IP address.

I'd like to integrate it into the eZ architecture properly, rather than just including it as the first line of index.php, and I'd like to use a .ini file to allow the access control to be tuned a bit.

Suggestions? Ideas?

Thank you in advance.

Heath

Sunday 24 April 2011 11:26:57 pm

Hello Betsy,

Could you place your code in the file config.php (v4.x+)?

Update: This has the added benefit of being used across all index php files and cli scripts.

Cheers,

Heath

7x | https://se7enx.com/
Brookins Consulting | https://brookinsconsulting.com/
Certified | http://web.archive.org/web/201012...th.ez.no/certification/verify/380350
Solutions | https://projects.exponential.earth/users/community/brookins-consulting
eZpedia community documentation project | http://ezpedia.se7enx.com

Betsy Gamrat

Monday 25 April 2011 2:47:20 am

Thanks!

I will to try use the autoload mechanism, which should allow me to create a simple extension.