Deny direct access but allow regular html
问题 I have the follow .htaccess inside upload directory: order allow,deny deny from all I want to allow <img src="upload/image.png" /> but get forbbiden error (403). How I can deny direct access but allow html "inclusion" (regular html)? 回答1: You can't (reliably). Whether viewed directly or as an <img> tag, the browser still makes a request to http://yoursite.example.com/upload/image.png , the two requests will basically be identical as far as the server is concerned. Now in most browsers, the