Preventing Indirect access to website in PHP

yusufdogan

New Member
I have a query. Is there a way to detect whether the website is accessed directly or in-directly? Let me make my question more clear to you with an example.Let's say I have an Image sharing website. When an user opens the website and views an image, it adds to the total impressions of the image. But I have seen people embedding DIRECT image Url in the forums instead of thumbnail code so as to increase impressions. This is supposed to be an indirect access to the website which I want to prevent.I simply want a solution that allows the website to be viewed only directly and not via false embedding of URL in forums, or via iFrames, or etc.Is there a solution for this in PHP? Thanks in advance.
 
Back
Top