- Impact
- 20
Hi there,
I don't know if this has been asked before. I could not find a relavant post.
This is what I want to do.
I have a site mysite.com and I have a directory loocated at mysite.com/dir/
And other files on my site use lot of files from this directory calling items as mysite.com/dir/item1 and mysite.com/dir/item2 like that. This calling is done by php script and those results will be shown on the site.
Now how can I restrict anybody's access directly to mysite.com/dir/
Their purpose could be to download all the items one by one. I tried some code for .htaccess but it stopped complet access meaning my site could not show anything.
So in essense what I am looking for is help to protect a directory from direct access but at the same time my server or my site can access it.
I will offer 25NP if anybody can help me with this, please.
Thanks in advance,
Gameshouse
I don't know if this has been asked before. I could not find a relavant post.
This is what I want to do.
I have a site mysite.com and I have a directory loocated at mysite.com/dir/
And other files on my site use lot of files from this directory calling items as mysite.com/dir/item1 and mysite.com/dir/item2 like that. This calling is done by php script and those results will be shown on the site.
Now how can I restrict anybody's access directly to mysite.com/dir/
Their purpose could be to download all the items one by one. I tried some code for .htaccess but it stopped complet access meaning my site could not show anything.
So in essense what I am looking for is help to protect a directory from direct access but at the same time my server or my site can access it.
I will offer 25NP if anybody can help me with this, please.
Thanks in advance,
Gameshouse





