PHP - block request from other domain

bosko1982

New Member
I have some links like this\[code\]http://www.domain1.com/files/domain1.com/files/def.jpghttp://super.domain1.com/files/super.domain1.com/files/abc.jpghttp://www.other1.com/files/other1.com/files/uhj.jpg\[/code\]These websites are hosted in the same hosting and sharing files folder. We separate them by using a sub folder named like domain name of website. However, file which belong to domain1.com:\[code\]http://www.domain1.com/files/domain1.com/files/def.jpg\[/code\]can be reach with url\[code\]http://www.other1.com/files/domain1.com/files/def.jpg\[/code\]How to prevent this?
 
Back
Top