Specific Forced Ads

JohnnyD

New member
Joined
Jun 23, 2010
Messages
1
Is it possible to have forced ads on sites on ONE SPECIFIC PACKAGE.

if so please tell me how?
 
Is it possible to have forced ads on sites on ONE SPECIFIC PACKAGE.

if so please tell me how?

I've realized similar project.
We have specific servers with free hosting and forced ads.

I don't know if you can force ads only to a specific package (I think on all vhosts).

Otherwise I've used:

1) mod_layout (you must compile it)
2) I've modified vhosts template located in /usr/local/directadmin/data/templates/virtual_host*.conf by adding specific rules and exluding from mod_layout some file extensions (such as *.php because it "destroy" page's layout on browser)
3) On php.ini (you can have specific php.ini for each domain) I've used "append" directive to have ADS on php files



EDIT: after that, you can have some bash script on server to DISABLE ADS to a specific domain. Or... You can enable them only to a specific domain: with bash script you can ad vhost directive and php.ini instructions.


Enjoy! ;)
 
Last edited:
DirectAdmin doesn't know anything about your user and reseller packages.

You may be able to write a post-create script to check for a specific user package and in the case of that package make the changes you need to make. Check documentation for DirectAdmin scripts.

Jeff
 
Back
Top