Cheap Web Space, Domain Name:
Web Space With E-Mail, PHP/MySQL.

How can I block all users but specific IP addresses or address ranges from files and directories?

Question: 

Searching …

 

Unfortunately nothing found on "".

Premium support for Bitpalace web hosting customers only!

 from Antigua and Barbuda: +49 30 32 70 18 92, Fax (in Germany) +49 30 32 70 18 91

service@bitpalast.net 

Skype: bitpalast

One moment please … your browser is loading the page.

 

 

Symptom

You want to block all users from opening certain files or directories, but you want to allow some IP addresses and networks to access these files anyway.

 

Solution

Scenario 1: Blocking a specific file

Create a text file in the directory that contains the file you want to block and name the text file ".htaccess" or edit an existing .htaccess file:


Order allow,deny
Allow from xxx.xxx[.xxx[.xxx]]
Deny from all

Instead of [filename] enter the name of the file that you want to block. Instead of "xxx.xxx[.xxx[.xxx]]" enter the IP address or part of the address for that the file shall remain accessible. For instance, when you want to allow computers using the IP 198.162.200.101, .102, .103 to access your file, enter: 198.162.200 (do not add an asterisk "*" as a wildcard, simply omit the last octet and the period in front of it.)

Scenario 2: Blocking a specific directory

Create a text file in the directory that you want to block and name it ".htaccess" or edit an existing .htaccess file:

Order allow,deny
Allow from xxx.xxx[.xxx[.xxx]]
Deny from all

 

Overview of frequently asked questions 

 

 

 


 

Additional Services

Starter Server: Affordable web server from  2.24 US$ () /month with PHP, database and many more 

Online Reservation System: Occupancy & vacancy schedule for any ressources (vehicles, sports facilities …) & guest houses, holiday apartments …  1.04 US$ () /month 

Software development: Development of database applications, programming and revision of computer programs & scripts  18.78 US$ () /hour 

 

FAQ – frequently asked questions 

 

Austria

Kenya

Guyana

Palau

Cuba

Lesotho

Argentina

Papua New Guinea

Paraguay

Cameroon

Australia

Germany

Bahamas

Dominican Republic

Barbados

Liberia

Belize

Bolivia

Peru

Uganda

India

Philippines

Malawi

Botswana

Chile

Malta

Costa Rica

Puerto Rico

Ireland

Marshall Islands

Rwanda

Saint Kitts and Nevis

Saint Vincent and the Grenadines

Saint Lucia

Mauritius

Zambia

Samoa

Jordan

Mexico

Switzerland

Dominican Republic

Madagascar

Seychelles

Micronesia, Federated States of

Kiribati

Ecuador

Namibia

Sierra Leone

Nauru

El Salvador

Singapore

Fiji

Gambia

Solomon Islands

Ghana

Spain

New Zealand

Sudan

Nicaragua

Swaziland

South Africa

Nigeria

Pakistan

Tanzania, United Republic of

Colombia

Grenada

Tonga

Trinidad and Tobago

Honduras

Tuvalu

Uruguay

Panama

Venezuela

United States

Jamaica

Canada

Guatemala

Guinea

United Kingdom

Zimbabwe

 

"Cheap Web Space": Affordable web space, cheap web server, low-cost webserver, low-price web servers: fast web server / small web server (cheap web space). Web server for private homepages / small website projects.

  from Antigua and Barbuda: +49 30 32 70 18 92 •  GmbH, Sensburger Allee 27, D-14055 Berlin (Germany)
Your purchase is tax-free, because you order from a non-EU country. © 2024  GmbH. All rights reserved. and the logo are registered trademarks of GmbH. For photo credits see imprint.

Imprint Privacy policy Sitemap