Im Jake Posted October 29, 2008 Share Posted October 29, 2008 Hello, Well... I'm thinking of starting a 'small' free hosting business well, its only for a few buds, (about 6-10) well I want to put an ad on there site, They will have full ftp access etc.. (by the way this is on a computer that I own using windows server 2003) anyways How could I make it so they couldn't take the ad off their site, or edit any part of it? Quote Link to comment https://forums.phpfreaks.com/topic/130511-uhm-wierd-question/ Share on other sites More sharing options...
trq Posted October 29, 2008 Share Posted October 29, 2008 What makes you believe your question relates somehow to the phpfreaks website? Quote Link to comment https://forums.phpfreaks.com/topic/130511-uhm-wierd-question/#findComment-677098 Share on other sites More sharing options...
Im Jake Posted October 29, 2008 Author Share Posted October 29, 2008 Oh shit, Lol, Sorry All I saw was questions :s... Quote Link to comment https://forums.phpfreaks.com/topic/130511-uhm-wierd-question/#findComment-677100 Share on other sites More sharing options...
Stooney Posted October 29, 2008 Share Posted October 29, 2008 You could have random inspections. Quote Link to comment https://forums.phpfreaks.com/topic/130511-uhm-wierd-question/#findComment-677115 Share on other sites More sharing options...
Lamez Posted October 29, 2008 Share Posted October 29, 2008 I hear Debian is a great server o\s! Quote Link to comment https://forums.phpfreaks.com/topic/130511-uhm-wierd-question/#findComment-677118 Share on other sites More sharing options...
corbin Posted October 29, 2008 Share Posted October 29, 2008 1. Mod Apache. 2. Make every markup-file type (html, php, htm so on) parse as PHP and make PHP include a header file in every file. Actually 2 might be possible with Apache.... hrmmm.... Quote Link to comment https://forums.phpfreaks.com/topic/130511-uhm-wierd-question/#findComment-677134 Share on other sites More sharing options...
steelmanronald06 Posted October 29, 2008 Share Posted October 29, 2008 Auto_prepend or auto_append. Save a file in a directory that they don't have access to. Using apache you can auto_prepend or auto_append the file to every page. Problem solved Quote Link to comment https://forums.phpfreaks.com/topic/130511-uhm-wierd-question/#findComment-677138 Share on other sites More sharing options...
trq Posted October 29, 2008 Share Posted October 29, 2008 I know its not much help saying something won't work and then not offering an alternative, but I just don't have the time to look into it at present. The auto_prepend / auto_append solutions above, while will work in most situations, they can easily be worked around by using output buffering. They will also likely break any calls to session_start() & header(). I would think you'll need to look out for an Apache module (assuming your using Apache) to handle this. mod_layout looks promising. Quote Link to comment https://forums.phpfreaks.com/topic/130511-uhm-wierd-question/#findComment-677274 Share on other sites More sharing options...
Daniel0 Posted October 29, 2008 Share Posted October 29, 2008 auto_prepend and append can break lots of things. Especially seeing as you in HTML cannot place things before the doctype and after </html>. You could of course append a script that alters DOM to add the ads, but that's easily circumvented. Quote Link to comment https://forums.phpfreaks.com/topic/130511-uhm-wierd-question/#findComment-677349 Share on other sites More sharing options...
corbin Posted October 29, 2008 Share Posted October 29, 2008 Auto_prepend or auto_append. Save a file in a directory that they don't have access to. Using apache you can auto_prepend or auto_append the file to every page. Problem solved Oh that's what I was thinking of! Quote Link to comment https://forums.phpfreaks.com/topic/130511-uhm-wierd-question/#findComment-677855 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.