DelphiFAQ Home Search:

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


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


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


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

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).


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:
NFL Jerseys:
beats by dre:
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






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 !!

2012-11-12, 05:13:46
anonymous from United States  
2012-11-15, 07:41:20
Cathrin from Pakistan  
Good post….thanks for sharing.. very useful for me i will bookmark this for my future needed.
2012-11-16, 12:55:54   (updated: 2012-11-16, 12:57:01)
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
Nice material. Like it. <a href=''> click to read more </a>
2014-02-26, 01:31:03   (updated: 2014-02-26, 01:31:51)
Thanks for information! At 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.
2014-05-21, 01:19:53
Address to get well-written custom essays at attractive prices.
2014-05-21, 05:53:01

Don't waste your time if you need college essay writing help! 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 essay writing service by visiting this website and bring professional look in your writings.
2014-09-24, 04:08:10
Kimberly McNeeley from Pakistan  
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 we deal with all understudies work and verify they get it.

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: