DelphiFAQ Home Search:

Deny everybody acces to a file on web site - using Apache

 

comments20 comments. Current rating: 5 stars (4 votes). Leave comments and/ or rate it.

Question:

How can I deny everybody acces to a file on web site? The file is called private.html and in my root folder.

Answer:

The simplest solution is to delete the file.

Is it some kind of log file and did you intend to view the file occasionally from the shell? Then you may want to change the rights of the file so no one can see it.

chmod 0 private.html

You can also use .htaccess if you use the Apache web server. Include these lines into your .htaccess file (placed in your root folder):
<Files "private.html">
deny from all
</Files>


Or you could move the file to a different location - to a directory that is already password protected (and you are the only one having access to it).




Content-type: text/html

Comments:

You are on page 1 of 2, other pages: [1] 2
2012-10-06, 01:09:08
anonymous from United States  
Really appreciate this wonderful post that you have provided for us.Great site and a great topic as well i really get amazed to read this
Fashion Brand Shop: http://www.fashionw..dvip.com/
NFL Jerseys: http://www.nikenflg..sale.com/
beats by dre: http://www.cheapmon..re.co.uk/
2012-11-06, 00:26:52
anonymous from Pakistan  
This is such a great information you have shared with us. I just came across your site and wanted to say that I have truly loved reading through your blog posts. Any ways I’m going to be subscribing for your feed and I hope you post again soon

http://www.essayhel..uy-essay/

http://www.essayhel..y-essays/

http://www.essayhel..-writers/

http://www.essayhel..services/

http://www.essayhel..ursework/

http://www.essayhel..-service/

http://www.essayhel..-service/

2012-11-07, 00:11:16   (updated: 2012-11-07, 00:12:13)
anonymous from Pakistan  
2012-11-07, 03:22:22
John Edward Lewis from Pakistan  
I will be back after few days because i love to read this site whole new thought !!
http://www.searchme..o-design/
http://www.searchme..b-design/
http://www.searchme..r-design/
http://www.searchme..e-writing/


Keywords:
2012-11-12, 05:13:46
anonymous from United States  
2012-11-15, 07:41:20
Cathrin from Pakistan  
rating
Good post….thanks for sharing.. very useful for me i will bookmark this for my future needed.
http://www.essayinn.co.uk
(:~)
http://www.essayinn..m-essays/
2012-11-16, 12:55:54   (updated: 2012-11-16, 12:57:01)
anonymous  
rating
2012-12-06, 05:14:04   (updated: 2012-12-06, 05:14:44)
anonymous from Turkey  
This is an excellent post. I learned a lot about what you talking about. Not sure if I agree with you completely though.
2013-06-16, 07:02:48
anonymous  
Nice material. Like it. <a href=' http://www.writemyp...org/'> click to read more </a>
2014-02-26, 01:31:03   (updated: 2014-02-26, 01:31:51)
anonymous  
Thanks for information! At http://special-essays.com you'll find more infrormation.
2014-03-24, 02:58:31
anonymous from Ukraine  
It was very well authored and easy to understand. Unlike additional blogs I have read which are really not tht good. I also found your posts very interesting. http://writings-centre.com
2014-05-21, 01:19:53
anonymous  
Address http://top-writing-..rvices.com to get well-written custom essays at attractive prices.
2014-05-21, 05:53:01
Lucy  

Don't waste your time if you need college essay writing help! http://marvelous-essay.net is ready to assist you round-the-clock!
2014-09-23, 02:32:09
anonymous from Pakistan  
It is true when you hear new information then you try your best to inform your friends or other people earlier. Sometimes you need to write down these information or make a good statement which require some writing skills. Professionally written papers always impress the readers so get our http://www.essayplanet.org essay writing service by visiting this website and bring professional look in your writings.
2014-09-24, 04:08:10
Kimberly McNeeley from Pakistan  
rating
Well said and truly extraordinary plans need to impart to us and article accessible for understudies. We convey the quality composition with the paper writing service incredible ways and http://www.essaydragons.com/ we deal with all understudies work and verify they get it.


Keywords:
You are on page 1 of 2, other pages: [1] 2

 

 

NEW: Optional: Register   Login
Email address (not necessary):

Rate as
Hide my email when showing my comment.
Please notify me once a day about new comments on this topic.
Please provide a valid email address if you select this option, or post under a registered account.
 

Show city and country
Show country only
Hide my location
You can mark text as 'quoted' by putting [quote] .. [/quote] around it.
Please type in the code:

Please do not post inappropriate pictures. Inappropriate pictures include pictures of minors and nudity.
The owner of this web site reserves the right to delete such material.

photo Add a picture: