How to restrict access to files in a folder in codeigniter
Hello I have used codeigniter to develop my website but when my website is searched in google , google shows up links to the files (pdf) in a particular folder and user can view these files (pdf) directly without login. I want to restrict google to directly show the links to these files. ex: www.mywebsite/myfolder/myfile Please guide me how can I accomplish this. Thank you. Arjun Raj A little modification from the previous answer : Place the .htaccess in your file folder with the content order deny, allow deny from all This will deny all access to that particular folder. For accessing the