is it possible to add a frame on every hosting account?

birken

Member
Oct 28, 2013
7
0
1
cPanel Access Level
Reseller Owner
Hi guys,

i am new to this so maybe my question is silly :eek:

i have vps server and on my free hosting packages i want an iframe/frame on the top of the customers websites created automatic on account creation, and the frame will only be removed when customer upgrade.

is this possible?

Warm regards Birken
 

simonas

Well-Known Member
Apr 21, 2013
141
0
16
Lithuania
cPanel Access Level
Root Administrator
This would be hard to achieve.

You could set auto_prepend_file=iframe.html in that user's section in httpd.conf
And make that auto_prepend_file could not be overridden.

Now how you add that line only to free hosting packages is the next question :)
 

cPanelMichael

Technical Support Community Manager
Staff member
Apr 11, 2011
47,911
2,233
363
cPanel Access Level
DataCenter Provider
Twitter
The document you referenced is for the deprecated method. The new method is documented at:

cPanel and WHM Script Hooks

cPanel & WHM script hooks allow a list of system-level operations to execute custom code. These system-level operations include account modifications, installation of server software, and backup runs.

It may be helpful to you, depending on which method you choose to add the iframe to the websites.

Thank you.
 

birken

Member
Oct 28, 2013
7
0
1
cPanel Access Level
Reseller Owner
Hi Michael,

thx :) is it possible to get some help how to setup a frame? i was thinking to have .header and .footer frames will be only on free packages.

i am super newbie :eek:

i will appreciate any help.
Warm regards B
 

birken

Member
Oct 28, 2013
7
0
1
cPanel Access Level
Reseller Owner
Hi Finn,

thx for your help the site that offer forced ads is not working not even possible to send them questions thru there contact page. :(

does anyone know any other company that can do this or soembody on this forum can helpw with this.

appreciate any help.

warm regards B