We are happy to announce that Vesta is back under active development as of 25 February 2024. We are working on v1 candidate and expect to engage more with the community over the coming months. We are committed to open source, and we encourage contributors to help us build the future of Vesta.
Web advertising in all Vesta web sites
Web advertising in all Vesta web sites
How can I do that in every website hosted with Vestacp can I add a script the client can not remove?
Closing time: 2018/01/07
Resolution: the violation of rules
Closing time: 2018/01/07
Resolution: the violation of rules
Forum rules
Before creating a new topic or reply on the forum you should fill out additional fields "Os" and "Web" in your profile section.
In case of violation, the topic can be closed or response from the support will not be received.
Re: Web advertising in all Vesta web sites
VestaCP doesn't have this feature and probably will never have. It's very annoying business practice by the way. Since VestaCP is hosting panel, it gives the user full control on what's on his site and it's impossible to add anything by yourself he a user can't remove.
Re: Web advertising in all Vesta web sites
you can do something like this.
it will replace <head> tag with <head><script type="text/javascript\" src=\"https://domain.com/snowstorm-min.js"></script> on every page
change "https://domain.com/snowstorm-min.js" to your script
add to
works for me
and im not sure but you can add those lines to a template or create new one. so every website you add well have those lines .
somewhere here
it will replace <head> tag with <head><script type="text/javascript\" src=\"https://domain.com/snowstorm-min.js"></script> on every page
Code: Select all
<Location / >
AddOutputFilterByType SUBSTITUTE text/html
Substitute "s|<head>|<head><script type=\"text/javascript\" src=\"https://domain.com/snowstorm-min.js\"></script>|ni"
</Location>
add to
anddomain.com.httpd.conf
beforedomain.com.httpd.ssl.conf
Code: Select all
</VirtualHost>
and im not sure but you can add those lines to a template or create new one. so every website you add well have those lines .
somewhere here
Code: Select all
/usr/local/vesta/data/templates/web/httpd