Webhosts and Webserver Gurus: Is this possible or impossible?

Is this possible?

I want all my hosting customers to have a directory (let call it 'padlock') under the public_html directory, that only allows access from a list of domains/ipaddresses.

Rather than having customers setup .htaccess files in their individual 'padlock' directories, is it possible to setup the webserver to automatically setup 'hostwide' access blocking 'padlock' directories on all accounts without using .htaccess.
Thereby eliminating the performance slowdown associated with individual .htaccess files.

Hence how are cgi-bin and public_html directories automatically created for all hosting accounts without the customer creating themselves? Isn't it possible to use the same process to automatically create a 'Padlock' directory for all hosting accounts but with the same restricted access to certain IP addresses?

Thanks in advance?

 

 

 

 

Top