2010-12-07, 10:17 AM
I have writtena simple PHP dynamic image generator/ad rotator, that displays images for a vb project of mine.
However i want to display a certain image saying "Web Browsers are not allowed to access this page" when a broswer like firefox, IE, safari etc... visits the page. I want to do this so people cant fraudulently increase the number of views for ads. I have been asked to do this by a company, as they dont want people to just keep autrefreshing a browser to waste the ad views thay pay for.
I think I want to do it via user agents. But how do i dynamically alter the image displayed depending on user agent? in php?
Basically, if there is a user agent, then dont display an image.
However i want to display a certain image saying "Web Browsers are not allowed to access this page" when a broswer like firefox, IE, safari etc... visits the page. I want to do this so people cant fraudulently increase the number of views for ads. I have been asked to do this by a company, as they dont want people to just keep autrefreshing a browser to waste the ad views thay pay for.
I think I want to do it via user agents. But how do i dynamically alter the image displayed depending on user agent? in php?
Basically, if there is a user agent, then dont display an image.