954,568 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

Forcing ads on certain pages

Hi there,

Is there any way, maybe using mod_layout, to force certain subdomains to have ads forced on their pages? I.e. for a free hosting company.

Thanks,

JNathanson
Newbie Poster
9 posts since May 2006
Reputation Points: 10
Solved Threads: 1
 

i have seen a lot of places like that use frames to force ads. I am not sure of the method they use to do this for their sites but that might get you in the right direction.

kkeith29
Nearly a Posting Virtuoso
1,357 posts since Jun 2007
Reputation Points: 235
Solved Threads: 194
 

Thanks for that, I'll keep looking. I don't know how to force it on all pages that they use though.

I want to automate it if possible.

Thanks,

JNathanson
Newbie Poster
9 posts since May 2006
Reputation Points: 10
Solved Threads: 1
 

what i think i would do is maybe a mod_rewrite ??? not sure if that would do it, but it would redirect to a php page

ex.
http://mysite.freehost.com

to

http://freehost.com/show.php?site=mysite

then the show.php would load a ad into the top frame and the site in the bottom.

i have seen one or two do it this way.

kkeith29
Nearly a Posting Virtuoso
1,357 posts since Jun 2007
Reputation Points: 235
Solved Threads: 194
 

This article has been dead for over three months

Post: Markdown Syntax: Formatting Help
You