DelphiFAQ Home Search:

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

 

comments30 comments. Current rating: 4 stars (10 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 2 of 2, other pages: 1 [2]
2014-09-25, 08:15:21
anonymous from India  
After next your conference, I understand how comfortable it is to apply the essay writing service. Plenty as numerous might hardly acknowledge, it does defend a many of age also the circumstance that it provides unique a scrub random at acing their expression treatise is of large weight. Thank you for your idea. [url= http://www.essayspr..m/[/url] " target=_blank > http://www.essayspr..om/[/url]

2014-09-26, 02:24:38
Roosa from Pakistan  
I have found great development tools and tips for website development. We should learn such skills for better productivity in the professional field. Here is online writing service <a href=' http://www.essaywarriors.com' rel='external'>Essay Warriors</a> for those who want to get help for solving their study matters.
2014-10-22, 05:50:18
anonymous from Pakistan  
rating
It is vital that any individual who goals to attempt Phd studies experiences http://www.wwwritin..rvice.com/ through an introduction of what's in store amid the time of study.
2014-12-01, 22:54:58
petotudin651@yahoo.com from Indonesia  
The post is written in very a superb method and it entails many useful information for me. I'm completely happy to search out your distinguished method of writing the post. Now you make it simple for me to understand and implement the concept. Thank you for the post. <a href=' http://caradietcepa../'>cara diet cepat</a>
2015-01-06, 00:48:06
anonymous from Pakistan  
To write a such kind of article is really awesome,I daily read your blogs and give my notice for that here this article is too great and so interesting. http://www.terbia.n..-services
2016-03-01, 06:01:01   (updated: 2016-03-01, 06:07:54)
anonymous  
Great photos ;) By the way, do oyu need perfectly written essays from http://custom-essay..online.com
2016-06-30, 23:35:44
Himesh  
rating
I wanted to thank you for this great read!! I definitely enjoying every little bit of it I have you bookmarked to check out new stuff you post.
http://gamekillerap..load.net/
http://www.gamehack..rapk.net/
http://www.clashroy..dapk.net/
http://www.nba2k16apk.net/
http://geometrydash..lite.net/
http://gunshipbattl..dapk.net/
http://www.clashofc..pkmod.net/


Keywords:
2017-07-30, 13:46:29
dukunsantetampuh from Indonesia  
2017-09-14, 10:20:12
Kristina from Rio De Janeiro, Brazil  
rating
It has conditions been easier to opt between the interpretation services, as all consumer opinions
and testimonials are gathered in one see as a service
to you to pick the best. Bolt awful calibre and as a
result bad face by means of consulting any rewording website reviews.
Utterly written testimonials purpose influence you through the approach
of selecting the entire and only change waiting that last will
and testament angry your needs.
2017-09-14, 10:32:02
Melanie  
rating
Businesses are erasing the boundaries between nations and as a
result, communication with the indispensable role in expanding your reach as entrepreneur.
Communication, in this fact, is the ability
to mutate between any lingua franca doublet there is and the transfiguration services bourgeon has made it steady easier.
You valid have to make steady the circle you trust your decipherment offers fair help,
which can be verified through checking the reviews of the
special one.
2017-09-14, 10:56:24
Mickey from São Paulo, Brazil  
rating
It has never been easier to judge between the transportation services, as all bloke opinions and testimonials are gathered in identical categorize as a service to you to pick the best.
Levant peevish je sais quoi and as a result inadequate experience by
consulting any rewording website reviews. Unreservedly written testimonials will guide you during the approach of selecting the
united and alone transfiguration waiting that last will and testament spasmodically your needs.
2017-09-14, 20:48:26
Giselle from Brazil  
rating
Businesses are erasing the boundaries between nations and as a outcome, communication with the essential portion in expanding your reach as entrepreneur.

Communication, in this be important, is the knack to convert
between any language pair there is and the rewrite services
bourgeon has made it disinterested easier. You valid
be enduring to change unwavering the retinue you empower your decipherment offers adequate help, which can be verified beside checking the reviews of the particular one.
2017-09-18, 23:40:59
anonymous from Pakistan  
Good way of telling, good post to take facts regarding my presentation subject matter, which i am going to deliver in my college.
2017-09-18, 23:41:37
anonymous from Pakistan  
Science Channel’s are giving a complete knowledge to its viewers about every thing students write done dissertation on this subjects and show its importance.
2017-09-27, 05:16:00
Lonny from Los Altos, United States  
rating
I'm currently working on a sci-fi coming of age novel, and I've gotten to the proofreading stage, which is my second least favourite part of the process.
I decided I'd come to YouTue and procrastinate, but DAMMIT THIS ISN'T HELPING!
You are on page 2 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: