Please help me to avoid direct access when we enter the path to file/image..
4
-
What exactly is your problem?Ja͢ck– Ja͢ck2012-08-31 11:47:39 +00:00Commented Aug 31, 2012 at 11:47
-
you can validate a file to download only when someone is login to your website.Gaurav– Gaurav2012-08-31 11:51:19 +00:00Commented Aug 31, 2012 at 11:51
-
user can download only when they signin.user1638546– user16385462012-08-31 12:06:35 +00:00Commented Aug 31, 2012 at 12:06
-
stackoverflow.com/questions/10596116/…Ja͢ck– Ja͢ck2012-08-31 12:23:40 +00:00Commented Aug 31, 2012 at 12:23
Add a comment
|
3 Answers
If you are using cPanel, use "Hotlink Protection". Hotlink protection prevents other websites from directly linking to files on your website. You can block direct access by specifying extensions. You can add jpg, png, gif,etc. for this problem.
Here is the tutorial.