Limit Access To A File (or Folder) To Only 2 IP's

Feb 22, 2007

I have a file on my server called admin.php and a folder called "admin" I only want 2 IP addresses to be allowed access to those files.

can this be done in .htaccess? if so can someone give me an example?

I have spent ages trying to work it out myself but I'm a bit of a noob

thanks in advance

what should .htaccess files be chmod'ed to ideally?

View 2 Replies


ADVERTISEMENT

Plesk 11.x / Windows :: How To Limit Access To Few IP Address To Access Port 8443 On Firewall

Aug 28, 2012

How can I allow only one ip or a list of ip addresses to access port 8443.I need to limit access this port to few ip addresses and not everyone

View 6 Replies View Related

How To Limit FTP Access

Jul 20, 2007

Is it possible to limit FTP access when hiring someone to work on a site/script. I'd like to limit the access to certain folders and files.

View 2 Replies View Related

FTP Access To A Folder

Jan 23, 2008

If i give someone ftp access to a folder, is it possible for them to gain access to other parts of the website that they aren't allowed to?

Also it it possible for them to like upload a virus and then somehow run it also?

Could they possible get my server root password also?

View 2 Replies View Related

PHP Access To A Folder

Apr 24, 2007

How do I give PHP access to a folder on my server?

View 4 Replies View Related

Limit FTP Access By Ip Address

Apr 19, 2009

Is it possible to limit ftp access to a server to only one ip address?

View 5 Replies View Related

Limit Access To Localhost

Jun 9, 2008

I have a win2003 server running some apps in the 'default web site'

I have just installed PHP on the 'default web site' and I want to use it to run some admin jobs. BUT I do not want the PHP scripts to be accessible over the internet, they should only run from local machine.

Is it possible to set it up so that the files can be executed only by localhost?

View 4 Replies View Related

Cannot Access To Folder With FTP Permission

Aug 6, 2007

why i cannot access the folder with FTP permission from Hosting Server?

I configured Serv-U FTP on a new server with domain name "agnhan.net" and this one still working on the old server.

View 2 Replies View Related

Apache :: Limit Max Number Of Concurrent Access To Specified URL

Jul 11, 2014

Is it possible to limit the max number of concurrent access to an url?

Let's see the following example: URL...

/a1 concurrent access should be limited to for example 20.

While we have an other url:
https:/ssss.com/a2

/a2 should be limited to 30.

Is it possible to do it with some apache config?

View 1 Replies View Related

My.cnf File Not In /etc/ Folder

Oct 8, 2008

i'm trying to edit my my.cnf file,but unfortunately don't find this file in
/etc/ folder.

It was moved from here, as i find my.cnf.moved with such content

[mysqld]
local-infile=0

and there is backup file for my.cnf.backup in this folder, but when i rename it
to my.cnf some of my scripts don't work well.

So it mean, that real configuration of my.cnf is fine, just need to increase
one value.

View 1 Replies View Related

File Showing Limit

Feb 27, 2008

my server runs centos with whm/cpanel,

some folder may contain over 1000s files,

and the ftp only can show 1000s files well,

where can i large the value and let it show more?

View 7 Replies View Related

Managing Local Root Folder Without Being Able To Access It

Nov 2, 2009

I'm planning a website at the moment but I'm wondering about a slight issue, regarding the local root folder of a website.

Currently, I'm using Dreamweaver to create a website and I have had no problems of uploading my files to a site through Dreamweaver before. But I will not have access to my computer for about one month every year. However, I have a laptop available during that month. But since my local root folder is located on my stationary computer it seems impossible for me to, in any way, use that laptop to manage my site (upload new files to the server).

View 3 Replies View Related

Apache :: WebDav Folder Access Rights

Feb 9, 2015

I want to grant different access rights for certain folders to a large group of users of my apache WebDav server.There are access control lists for each folder on the server. Based on the rights in the access control lists the users should only have access to the folders listed in the ACL lists.In addition to that some users have only "read", some also "write" rights for the folders.How can I set up the described access rights on my WebDav server?

View 1 Replies View Related

Folder - File Permissions

Oct 28, 2007

Server:
Centos 4.5/cPanel v11/php5 - SSH

Maybe someone can set me straight on this. I have always been under the impression, that under normal circumstances, permissions should usually be as follows:

userdir - 711
public_html - 750
folders - 755
files - 644

I am doing some work on a server and when I create a new folder (using WinSCP) it defaults the folder permissions to 775 and file permissions to 664. Besides causing possible problems with the applications I'm installing, isn't this a bit of a security risk?

Also, if I upload a tar and untar on the server it sets the same 775/664 permissions.

View 3 Replies View Related

Limit The Speed For Certain File Type

Apr 19, 2009

i have a server and let friends put images on it,

i find some people put big .zip and .iso files on it,

it make my server waste many bandwinth and make the images show lower and lower,

can i install any software to do the control,

to make "if user browse .zip or .iso files, they can only use the 1Mb bandwidth, if the content is images or html,the speed is no limit",

View 4 Replies View Related

File Size Limit In Cpanel

Aug 10, 2008

I wanted to add a maximum file size limit of 10mb to all files uploaded via cpanel, php scripts or ftp.

I am currently running cpanel and whm on a linux server.

how i can do this. (i have root access)

View 9 Replies View Related

Mysql Open File Limit

Aug 14, 2008

I am trying to increase my open file limit on my CentOS release 4.6 VPS.

I have tried modifying my /etc/security/limits.conf with the following:
@mysql soft nofile 4096
@mysql hard nofile 4096
@mysql soft sigpending 4096
@mysql hard sigpending 4096

Even is a mannual set it with "ulimit -n 4096 mysql" it will not stick.

Any ideas what I can do to get this limit increased permanently?

View 7 Replies View Related

Redirect Whole Folder In CPanel To A File

Jul 9, 2008

a way to set up a redirect in cPanel so that every file within a particular folder is redirected to a specific file.

For example: I want to redirect every file in domain.com/test to domain.com/redirectedFile.htm

Is this possible in cPanel?

If not, is there another way to do this?

View 2 Replies View Related

Folder And File Protection In Lighthttpd

Jan 15, 2007

to install LightHTTPD but I want to know how can I protect folders like using on apache i can put a .htaccess and it prompts me to enter pass etc...

How do I do that in lightHTTPd?

How do I disallow certian file extensions from public eyes like on my current server I disabled viewing of .datab files and when someone types in the location of mydb.datab they get a forbidden message.

how do i do that in lighthttpd?

View 2 Replies View Related

Plesk 12.x / Linux :: Upload File Limit?

Jun 22, 2015

I have a big problem concerning the file upload limit (I need a large size, around 2Go) : I was using my app in /var/www/vhost/default and it was working perfectly, I decided to change it and use /var/www/vhost/mydomain.com to have it throught the plesk panel, and there I have an upload limit than I need to push. I can't upload files larger than 128Mo and I don't know why.

- I have checked all php.ini files (with locate php.ini) and they are all correct.
- I used plesk panel to set php conf -> done.
- I put :
php_value memory_limit 2000M
php_value upload_max_filesize 2000M
php_value post_max_size 2000M
in my .htaccess in htdocs

[Code]....

I reload/restart apache2, psa, ... And it still doesn't work, I have no more idea every conf file seems correct. It's not a permission problem because I can upload some 80Mo files but not 500Mo ...

View 6 Replies View Related

Plesk 12.x / Linux :: Outgoing Mail Limit - Report - Access Denied

Sep 27, 2014

On the dashboard (intro page) there is the option "Outgoing Mail Control" and there the link "See report". When clicking on "See report" I get a "Warning: Permission denied." error message when being logged in as the full administrator. Is this due to an error in an update or what is going on here?

View 1 Replies View Related

Deleted Tmp Folder, Mounted Secure File

Feb 13, 2008

I deleted my tmp folder and mounted a secure tmp file via fstab
e.g.

/path/to/tmp /tmp ext2 loop,noexec,nosuid,rw 0 0


the temp files are now written to a secure tmp file, however some processes still need that folder for example cpanel.

"Failed to create directory /tmp/cpanel.TMP.xxxxx"

Should I ignore that and similar error messages or what am I supposed to do?

View 8 Replies View Related

Apache :: How To Change Bulk File Permission From All Folder

Sep 14, 2013

Recently I moved my WordPress website to another server, After moving my site I see that my all files permission set to 664, for that I getting many error, now I want change all files permission 644, but problem is I have many subdomain with this site, is there any way to make change all files permission to 644 with SSH or any other way?

View 1 Replies View Related

Plesk 11.x / Linux :: FTP - Wrong Folder And File Permissions

Nov 15, 2013

I have a problem where every folder I ftp onto the server gets given a 700 permission and every file gets a Zero permission. Most of the sites I am adding to this server will be WordPress sites and most of the folders I want to have a permission of 755 and for the files a permission of 644 so my question is how do I change the settings so that any new files ftp'd onto the server get the permission 755 and files get the permission of 644 ?

View 2 Replies View Related

Plesk 11.x / Linux :: Each File / Folder Created By PHP Overridden By FTP

Jul 14, 2014

I got this Problem after install a New Plesk Server.

Current: CentOS 6.5, Plesk 11.5.30, PHP 5.3.3 (Default install), PHP as FastCGI (I Tried also with Plesk 12.x).

What I did: in IP Tables i set al Ports for Plesk; I set in /etc/proftpd.conf the Ports "PassivePorts 65000 65200"

Problem: Each file ore folder created by an php Application i cant see ore override by ftp.

Example: I Upload a new installation of Joomla 2.5 (CMS) by ftp with a User created by plesk. Then I start the Installation by using the Webbrowser. In this process Joomla change some files and create also an configuration.php. All done by php Scripts. Now I check the configuration.php on the FTP -> Cant see it. -> I check by SSH and the file exists. If I Check the Permissions it seams, that all file have same permissions, owner and group.

-> Configuration.php can not see by ftp ore be overwritten
-> htaccess.txt I see by ftp and i can manage
->> Permissions seams to be the same "?"!"

View 1 Replies View Related

Script To Limit File Size On Video Share Server

May 29, 2008

We have found that we need to limit the amount of cpu uage by users on our video share server. On this server we currently have 20 users on a sharred plan. Thought that the obvious BW usage would be the biggest challenge, as it turns out we havent gone over the 2 TB that we have.

We have come up with an encoding process that uses the 264 codec and gives us excellent results in terms of quality but is very cpu intensive to the point of really slowing down the server when 10 or more users simutaneously are encoding their videos.

Can someone suggest a script that would allows us to limit the file size in terms of MB/GB that each user could upload per month.

So for example a client pays 10.00 per month and we wanted to limit their uploads to a total of 900 MB per month vs the client that is paying 50.00 per month who would have the ability to upload say 8 GB per month.

Cento 5
c-panel
Dual Quad Core 2.0 ghz
6Mb Ram
1TB HDD
2 TB of BW

View 2 Replies View Related

Plesk 12.x / Linux :: Folder Permissions / Joomla Installer - Could Not Copy Setup File

Mar 17, 2015

Ok, new to Plesk, trying to move from ispconfig. So I have Plesk 12 running on Centos 6 64bit in a VPS. I figured out how to upgrade PHP and now I have installed my first website. The website is joomla based but I am getting the below error when installing components:

Warning
Copy failed.

JInstaller: :Install: Failed to copy file /var/www/vhosts/virtual-sim-racing.com/httpdocs/home/tmp/install_55081e65af5fe/pkg_kunena.xml to /var/www/vhosts/virtual-sim-racing.com/httpdocs/home/administrator/manifests/packages/pkg_kunena.xml

Package Install: Could not copy setup file.

This suggest to me a permissions issue - but what to do with it. I have checked all of the relevant Joomla folder permissions and they are all showing as writeable, so it looks like something outside of that?

I don't want to have to stick with ispconfig much longer ...

View 7 Replies View Related







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