eZ Community » Forums » General » Blacklist implementation question
expandshrink

Blacklist implementation question

Blacklist implementation question

Monday 25 April 2011 12:36:04 am - 2 replies

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.

Monday 25 April 2011 8:26:57 am

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

Modified on Monday 25 April 2011 10:32:09 am by Heath Heath

Monday 25 April 2011 11:47:20 am

Thanks!

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

expandshrink

You must be logged in to post messages in this topic!

36 542 Users on board!

Forums menu