How To Restrict Directory Access

May 28, 2009

How to restrict directory access by IP address using .htaccess?

AS i know the code must be like this

Code:
Order Deny,Allow
deny from 111.111.111.111

Now the questions

1. how to restrict access by IP-subnet?
Does such code right ?

Code:
Order Deny,Allow
deny from 111.111

2. how to restrict multyple IPs?

Code:
Order Deny,Allow
deny from 111.111.111.111, 222.222.222.222, 333.33.33.33
?

View 2 Replies


ADVERTISEMENT

Restrict Access To WHM By IP

Apr 13, 2007

where I can restrict access to WHM to only my IP? My provider is stumped. They were using iptables and came to the conclusion it couldn't be done on a VPS.

View 6 Replies View Related

Secure And Restrict SSH Access

Aug 23, 2007

1.Who can I secure and restrict SSH access?

View 3 Replies View Related

Apache :: Restrict Access To A Set Of IP In Specific URL

Jan 18, 2014

I have Apache 2.2 installed on my Unix Server and have a couple of Application servers running each of them having similar Document Root.

For example, The URLS will look like below

https://my-test1.com/demo/index.html
https://my-prod1.com/demo/index.html
https://my-qa1.com/demo/index.html

The directory folder looks like

/myapp/my-test1/demo/index.html
/myapp/my-prod1/demo/index.html
/myapp/my-qa1/demo/index.html

I would like to restrict access to the above prod1 URL for a specific set of IP's. How can I achieve this.

View 1 Replies View Related

Apache :: How To Restrict Access Via IP Address For Specific Webpages

Apr 17, 2014

I'm using Concrete5 CMS to create a website. This CMS creates/manages all its webpages in a mySQL database. Thus, there is no physical folder associated with each webpage, so I can't simply create an .htaccess file and place it in the directory tree in the right sub-folder to restrict access for that sub-folder and all folders it contains.

I have one .htaccess file located at the root level (e.g top-level folder for the website).

QUESTION 1: I need place in this top-level .htaccess file to (1) restrict access to only two specific IP addresses that I can specify (blocking access to all other IP addresses), and (2) specify the URL addresses that I wish to apply this rule to?

For example, let's say my website is [URL] ....

And I want to restrict access to the [URL] ....

and my .htaccess file is located at

/home/myname/public_html/conc/.htaccess

What code can do that?

View 1 Replies View Related

IIS Directory Access

Nov 4, 2008

How do I do this in IIS

I need to be able to access resources such as PDFs, videos from my website once a user has logged in but I need to block users being able to access the resources from a url?

View 6 Replies View Related

How To Disallow Access To A Everything In A Directory

Oct 26, 2005

Ok, here's the deal. I am about to start a site to allow users to log into a password protected area and then, based on each individual user, they will be given access to a .pdf file which contains pricing and rate information that is specific to the particular user.

What is the best way for me to secure the location so that a person could not go to - for instance - www.site.com/docs/xxx.pdf and view someone else's file?

I am using a Win Server 2003/IIS 6 environment. The site will be written in php, and will have a SQL Server 2000 backend to store the userid/pwd combinations, and the name of the particular user's file. I know to make it where the contents of the directory can't be listed, but I need to make sure a person could not quess the filename of another users .pdf and be able to view it.

View 1 Replies View Related

Blocking Access To A Directory

Apr 3, 2009

ive got a flash music player that gets its tracks from a dedicated directory on my server. there's about 10GB of music in there (we own it) and i want to stop people getting at the files (they can see the path in the source of the page that has the flash player).

i tried an htaccess directive that stops listing the directory contents but that obviously wont work. what is the best & most secure strategy to achieve this, blocking all ip addresses apart from my server's?

View 5 Replies View Related

Directory Access By Referral Only

Apr 22, 2007

I'm trying to control download access in a particular directory. I don't want to hide the directory behind a password.

What I am looking to do is to permit access to the files to people who have clicked on my download link only (referrer). Direct links, and hot links to be denied.

I can disable hot linking easily enough via .htaccess. But I'm not savy enough to pull off referral only access.

View 4 Replies View Related

Ensim - Set Directory Access

Jan 18, 2007

We currently have a site hosted on a dedicated server, and we use Ensim to manage the site.

Although we can use Ensim to FTP, we mainly use Dreamweaver or other FTP clients to FTP.

What we are wanting to do, is set up and FTP user, so that they can only have access to certain directories. Is this possible? If so, what would I need to do?

Also, when they connect via an FTP program (assuming that the access has been set up as desired) will they only be able to see those directories specified?

View 0 Replies View Related

Restricting Access To A Web Directory By Referer

Jan 8, 2008

I have a set of confidential files that I want to make accessible over the internet to members overseas.

Members will access the file links on a secure web application.

I want to restrict access to the files so that they only open when the user clicked them from the web application. ie. if they paste the url into a browser it should not open the file.

I managed to do this in Apache, but I need to do it in IIS - is it possible?

View 0 Replies View Related

Virtual Directory Access In IIS, By Group

May 24, 2007

Is there anyway to set up a Group that only has access to one virtual directory and nothing else on the server? Running IIS 6.0 on Windows 2003.

View 1 Replies View Related

Proftpd Config - How To Make Directory Have Read/write Access

May 22, 2008

Followed the guide over at [url]to get proftpd setup.

It only lists ways to create a single upload directory and a single download directory.

Tried all possible ways to get a directory creating allowing read/write but so far unsuccessful.

how this can be acheived?

Here is my current config.

#start of config

<Directory /home/FTP-shared>
Umask 022 022
AllowOverwrite off
<Limit MKD STOR DELE XMKD RNRF RNTO RMD XRMD>
DenyAll
</Limit>
</Directory>

<Directory /home/FTP-shared/download/*>
Umask 022 022
AllowOverwrite off
<Limit MKD STOR DELE XMKD RNEF RNTO RMD XRMD>
DenyAll
</Limit>
</Directory>

<Directory> /home/FTP-shared/upload/>
Umask 022 022
AllowOverwrite on
<Limit READ RMD DELE>
DenyAll
</Limit>

<Limit STOR CWD MKD>
AllowAll
</Limit>
</Directory>

#end of config

/home/FTP-shared/read-write is the folder I want to be able to read and write data to.

View 0 Replies View Related

Apache :: Mod Rewrite Rule To Disallow Direct Access To Files From Some Directory

Oct 26, 2014

in wordpress is wp-includes folder, i dont want anyone just execute file from this directory so it just serve wordpress not any malicious file be executed from there,

so i added this rule into /wp-includes/.htaccess:
RewriteRule ^(wp-includes)/.*$ ./ [NC,R=301,L]

View 2 Replies View Related

Apache :: Accept Files In Home Directory - Development Server Access Denied

Jul 19, 2014

I have recently switched from Ubuntu to Mint because I would like to enjoy out of the box functionality. I installed Apache, PHP and Mysql. When I go to localhost, the page displays correctly indicating that the server is functioning. In /var/www/html I created devPages. In devPages I created a symlink to a directory in my home directory where I keep all of my html/php files.

When I point my browser to http://localhost/devPages/1/ I get "You don't have permission to access /devPages/1/ on this server". This appears to be a permissions/ownership issue. I don't want to change the permissions for the directory or files in the home directory because they are set to work properly on my production server. Is there a way to get apache to accept files in my home directory?

I have set owner and group for devPages and the symlink to www-data. Set permissions to 755 for devPages.

By the way, under Ubuntu, I have always used a symlink and it always worked without any issues.

View 1 Replies View Related

Plesk 12.x / Linux :: Transport Error - Unable To List Directory / Access Denied To Remote Resource

Nov 20, 2014

I seem to have an error with backing up to my personal FTP repository. I have only just noticed the issue, but i believe it originated when I upgraded Plesk Panel 11 to Plesk Panel 12. I am currently running version 12.0.18 on Cent OS 6.5.

Note whether i check the "Use passive mode" option makes no difference to my problem.Below is what I get from the panel.log under /usr/local/psa/admin/logs

Code:
[2014-11-20 19:49:44] ERR [util_exec] proc_close() failed
[20-Nov-2014 19:49:44 UTC] PleskUtilException: '/usr/local/psa/admin/bin/pmm-ras' '--check-repository' '--dump-storage=ftp://USERNAME@IPADDRESS/MYFTPDIRECTORY/' '--use-ftp-passive-mode' failed with code 121.

stdout:
Transport error: unable to list directory: Curl error: Access denied to remote resource

stderr:

file: /usr/local/psa/admin/plib/Service/Agent/Transport/Local/Exec.php
line: 57
code: 0
trace: #0 /usr/local/psa/admin/plib/Service/Agent/Transport/Local.php(60): Service_Agent_Transport_Local_Exec->process(0, Object(Service_Agent_Command_Exec), Object(Service_Agent_Transport_LocalTransaction))

[code]....

View 8 Replies View Related

How To Restrict CPU Resources

Jun 26, 2008

I would like to configure my delicated server to have following restriction on cpu...

system resources: 10% @ 30 sec per cPanel Account

View 8 Replies View Related

Want To Install FTP And Restrict It To Certain IP Addresses

Jan 25, 2008

I have set up IIS, and have been running a web server for about a month. I want to install FTP and restrict it to certain IPs. When I install the FTP will it erase everything I have set up? Also I want to have the FTP be only accessable from my school. They run active directory. Is it possible to restrict the FTP to this domain? Or maybe to the WAN IP of the school?

View 2 Replies View Related

Is It Possible To Restrict Outbound Email With Smartermail

Jul 20, 2009

A prospect wants an email server that could allow him to restrict some accounts and make them send emails only to the companies domain.

I was thinking of setting up a VPS with smartermail, so I was wondering if this be done with smartermail?

View 2 Replies View Related

How Can I Restrict User Specific CPU Usages

Nov 18, 2008

How can i restrict my user that always taking high CPU usages..i have linux server with shared hosting and most of the time i suffer that some user takes 10% of our server CPU so that i want to restrict those take high cpu usages..

View 6 Replies View Related

CPanel Directory / Sub-Directory Protection (Linux Shared Hosting)

May 31, 2007

I have a situation like this:

There is a directory say, "Master" and inside, "Master" there is sub-directory, "Slave". A user who has access to, "Master" should be able to access, "Slave" automatically. However, a user who has access to, "Slave" should not have access to, "Master". Inside cPanel this type of protection is not possible.

View 3 Replies View Related

Httpd Directory Alias (public_html) Virtual Directory

Dec 11, 2008

How do I direct my httpd file to point to:

home/USER/public_html
instead of:
C:Users estetc...

I want to do this to make my test server just like the remote server.

View 5 Replies View Related

Move The Entire Contents Of A Directory Tree To Another Directory

Sep 18, 2008

I want to move the entire contents of a directory tree to another directory.

So for example we may have a directory with 15 directories inside, each directory contains files itself. I want to copy all the files from the directory tree into another directory located somewhere else one the file system. I want only the "files" to end up in the other directory and not the file structure too.

Im running CENTOS latest version.

View 4 Replies View Related

Apache :: Restrict Number Of Session For Context

Dec 29, 2014

I have installed apache 2.4.10 with tomcat-7 as backend .Proxypass has been added in apache to access tomcat via http port .now requirement is to restrict each Context to 100 sessions only , how i need to achieve this .

View 1 Replies View Related

Plesk 12.x / Linux :: Restrict SSH User To One Folder?

May 15, 2015

I need to create a SSH account for an subscription. This account is not allowed to access other domains. How do i do that?

I know how to create an SSH account with remote access.

View 1 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved