BlackDemon

Active Member
Jun 5, 2004
25
0
151
I run a very large free webhosting company which makes all its money off small banner/google advertisments. What I'm looking to do is make it so apache applies some code to the top of each page under a certain reseller account. I need it so this code can not be removed or altered. Does anyone know of a way to do this?


Thanks.
 

kwhs

Member
May 21, 2006
9
0
151
add a .htaccess file in the skeleton directory of the reseller with the following information in:-

php_value output_buffering 4098
AddType application/x-httpd-php htm
AddType application/x-httpd-php html
php_value auto_append_file 'http://www.xxxxxxx.co.uk/footertest.htm'

footertest.htm being your file with google adverts on

this will then include the adverts at the bottom of each page made on that reseller account, but they wont be able to amend it on the page code itself, only way someone can change it is to alter the .htaccess file (which are normally hidden anyway)
 

webignition

Well-Known Member
Jan 22, 2005
1,876
1
166
kwhs said:
this will then include the adverts at the bottom of each page made on that reseller account, but they wont be able to amend it on the page code itself, only way someone can change it is to alter the .htaccess file (which are normally hidden anyway)
However many users do use .htaccess files for settings as trivially common as custom HTTP error pages.

Using mod_layout on a per account basis would probably be more suitable.
 

BlackDemon

Active Member
Jun 5, 2004
25
0
151
I have installed mod_layout and got the header working partly the way i want, php wouldnt load what so ever so I made a iframe for the header. The bad part is it breaks the rest of the page, some php pages were completly broken with just a { where the page should be, others the css files were broke, not to mention the mod it self is massivly unstable. Out of all the options for page inserts, half didnt work and gave seg faults, etc etc. I guess since it hasnt been updated in so long its just breaking down.

Do you all know a mod that is more recent that will do what I need?