I have a file that I want only the same domain to be able to access, how can i do this?
| SitePoint Sponsor |



I have a file that I want only the same domain to be able to access, how can i do this?
Place it above your web root.
@AnthonySterling: I'm a PHP developer, a consultant for oopnorth.com and the organiser of @phpne, a PHP User Group covering the North-East of England.



Thanks, yes that is an option. Just wondering, is there any way of doing this within the php file itself though?
Bookmarks