I currently use an external service for a price comparison unit I have on one of my sites. The way you load the price comparison block is via javascript:
<script type="text/javascript" language="javascript" src="http://www.easycontentunits.com/js_unit.php?ecu_mid=3706&ecu_uid=101734"></script>
If you were to paste the above code into a html page, you would see a block of prices, more info buttons etc. However, if you loaded the source page directly, it shows no content and a completely blank page:
http://www.easycontentunits.com/js_unit.php?ecu_mid=3706&ecu_uid=101734
I am looking to write some code for another site I run and would like it to work like the example above. I.E. when I load an external php page via javascript, it will show it on the webpage. If you followed the link and loaded the external page it would show a blank page.
How would you go about this? Is it some special php code, or a trick with htaccess or similar?
Any help would be greatly appreciated.
Most likely what you want is just
refererrequest header check: