Forums / General / Blacklist implementation question

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

Brookins Consulting | http://brookinsconsulting.com/
Certified | http://auth.ez.no/certification/verify/380350
Solutions | http://projects.ez.no/users/community/brookins_consulting
eZpedia community documentation project | http://ezpedia.org

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.