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


ADVERTISEMENT

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

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

Apache :: How To Deny Access To Specific File Using HTAccess

Jun 21, 2014

I would like to deny access to .log

View 1 Replies View Related

Apache :: Mod Rewrite Rule To Prevent Access To Specific Page?

Jun 25, 2013

This is the mod_rewrite rule I'm trying to create. I am very new to Apache admin. Here's the issue:

I have 3 vhosts running on my HTTPD Apache 2.2.24 server: Server1, Server2, Server3. Each vhost is connected to a Weblogic application server. We are trying to prevent access to the Example.portal page on each application server.

So the URLs I'm trying to rewrite are:

- Server1.domain.com/PortalWeb/Example.portal
- Server2.domain.com/PortalWeb/Example.portal
- Server3.domain.com/PortalWeb/Example.portal

So, I would like to redirect the above URLs back to the 'root' of the website. ie: server1.domain.com. Here is my rewrite rule:

RewriteRule ^(.*)/Example.portal$ http://$1 [NC]

So, the rule is matching correctly to URLs that contain Example.portal, however the back reference from (.*) does not seem to map to $1.

View 6 Replies View Related

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

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 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 :: How To Redirect Specific Useragent On Specific URLs

May 20, 2015

I have question: How to redirect specific useragent on specific URLs to specific URLs in .htaccess [Question]

E.g.:

I want to redirect 301 with conditional:

Code:
useragent: Firefox
from my url1: domain[dot]com/old-url1/
from my url2: domain[dot]com/old-url2/

to

Code:
to new url1: in my url1: domain[dot]com/new-url1/
to new url2: in my url1: domain[dot]com/new-url2/

I create this in my .htaccess but not work

Code:
RewriteEngine On
RewriteCond %{HTTP_USER_AGENT} googlebot [NC]
RewriteRule ^/?this-is-url/?$ domain[dot]com [L,R,NC]

View 1 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

How Can I Give A Customer Access To His Specific Domain On Godaddy

Apr 14, 2008

I have an account on godaddy, with more than 20 domains registered and well, so far i have been in charge of the updates of these domains and the websites they represent. But now I have this customer who is asking me to have access to his specific domain so he can upload files by him self, the thing is that i dont have a clue of how to do it. I tried to create a new account in godaddy for this customer and tried to transfer this domain into his account and I was not allowed to. I cannot give him my username and psw cause he wont only have access to his website but all those i have registered under my account. I will really appreciate some advises to help me work this out.

View 4 Replies View Related

Mysql Disable INSERT Access To Specific User/table

Apr 26, 2009

How can I disable INSERT access to specific table.

The user should have full access the the DB except insert to specific table.

The tables_priv allow to set what enable and not what disable.

I'm using mysql v5

View 4 Replies View Related

Plesk 12.x / Windows :: Getting Error When Try To Access To Domains In Specific Client

Dec 14, 2014

I migrate to 12.0.18 Actualización #28, última actualización Dic 11, 2014 02:12 PM.

When I try to Access to the domains in a specific client I´m geting this error:

Internal error: D:Plesk wes.escarmerieradomenech.com is out of webspace
MessageD:Plesk wes.escarmerieradomenech.com is out of webspace
File Webspace.php
Line401
TypePleskFatalException

View 5 Replies View Related

Apache :: IP And Page Specific Redirect?

Feb 19, 2014

I'm trying to get code to go in a .htaccess file that when a specific IP tries to get a specific page, he/she is redirected to another page.

I have tried many variants of this code below ...

Code:

RewriteEngine On
RewriteCond %{REMOTE_ADDR} ^12.345.678.90$
RewriteCond %{REQUEST_URI} /requested-page.html$
RewriteRule .* /redirect-to-this-page.html [R=301,L]

... and nothing works. My webserver gets hosed, and my otherwise working system gives me an error when I try to get a page from it. I am, by the way, using Mac 10.6.8, with Apache 2.2 on both server and client.

What will work??

View 6 Replies View Related

Apache :: How To Detect Where User Has Come From A Specific Website

Nov 1, 2013

configure Apache server to handle users requests using condition based on where he come from so i can redirect him . what i need if user came with from site start with xn--* redirect him to virtual host and if he came from any other link then go to another virtual host

View 2 Replies View Related

Apache :: How To Block A Specific (Query String) URL Via HTAccess

Mar 18, 2013

I don't know how to block a specific QUERY STRING url via .htaccess file, well actually I want to block this type of url :

test.php?q=RANDOMTEXT=&tl=The%20path%20ends

View 2 Replies View Related

Apache :: Redirect Any Specific Page Of Site To Homepage

Feb 19, 2015

How do i redirect URL: example.com/page1 to example.com..i want to redirect any specific page of my site to homepage.

View 3 Replies View Related

Apache :: How To Select Specific File With Path Using HTAccess

Jun 14, 2014

I want to select a specific file by its path using .htaccess to allow access to it.

View 1 Replies View Related

Apache :: Security Challenge - Rejecting Specific Requests Without Blocking IP

Jan 21, 2014

I have been trying to solve a big problem for the last 2 weeks with one of our servers.

The client using our system (web based w/ apache and php) is a contact center firm. They have about 120 operators, all connect to our websever with the same IP.

We have been suffering DoS attacks from some of these operators. This are simple, browser attacks , namely 5 or 10 operators will just hold F5 key and bombard the server with requests when they shouldnt.

We did manage to produce a php protection which will recognize the multiple requests and blacklist the user, but its "too late" because the request have already been sent and processed by the webserver.

We use the user ID in the system to control who should be blacklisted, so this is all dependent on our own authentication.

Ideally, we need something EXACTLY like mod_evasive, but for rejecting single requests instead of blocking the IP. Exemplifying : if a user calls the same url, 5 times, in a 3 second spawn, we will reject every next request for 30 seconds, but only the requests by that user.

If the webserver can make any use of it, the user id is stored in a cookie.

View 4 Replies View Related

Install Apache And Run It On Specific Mentioned Ports Between 2110 To 2250

Jan 8, 2013

installing an apache server in Linux centos and run it on any port between 2110 to 2250. I dont have much idea about the installation.

I have logged in to SU and install apache by " yum install httpd"

now how to I host on port betwwen 2110 to 2050 forwarded ports.

View 2 Replies View Related

Apache :: Setup Subdomain / Virtual Host To Redirect To Specific Port And Path

Mar 13, 2013

I am trying to setup a subdomain and/or virtual host to redirect to a specific port and path. I have setup my server with DDYNS through my domain name registar. Through the ddyns client I have set it to assign a subdomain of "outside.name.com" so that my server will have a easy name to get to instead of a dynamic ip address.

I have also setup on my registrars host records another subdomain of "inside.name.com" with a static IP address for internet network accessing to my server.My problem is that I have a service/program on my server that I need access to both internally and externally and this service can only be access through a port of 32400 and HTTP address of /web. (e.g. outside.name.com:32400/web or inside.name.com:32400/web)...

Is there a way that I can create a VirtualHost or Subdomain of "service.*.name.com" that redirects them to ":32400/web" of the hostname they're on? (e.g. service.outside.name.com automatically forwards or proxies--to keep it pretty--to service.outside.name.com:32400/web)

View 1 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

My Apache Access Log

May 25, 2008

As per subject, I have a cpanel server and lately there is something seems wrong with my apache access logs.
/usr/local/apache/logs/access_log

The problem is the log did not recorded website being accessed in details

Quote:

218.111.202.105 - - [24/May/2008:22:53:37 +0800] "-" 408 -
127.0.0.1 - - [24/May/2008:22:55:01 +0800] "GET /whm-server-status HTTP/1.0" 200 31811
74.53.197.2 - - [24/May/2008:22:55:17 +0800] "-" 408 -
74.53.197.2 - - [24/May/2008:22:55:23 +0800] "-" 408 -
219.93.152.12 - - [24/May/2008:22:56:34 +0800] "-" 408 -
207.234.129.249 - - [24/May/2008:22:56:42 +0800] "-" 408 -
203.130.242.48 - - [24/May/2008:22:56:56 +0800] "-" 408 -
203.130.242.48 - - [24/May/2008:22:57:01 +0800] "-" 408 -
76.184.65.88 - - [24/May/2008:22:58:07 +0800] "t&rls=org.mozilla:en-USfficial&client=firefox-a" 501 -
127.0.0.1 - - [24/May/2008:23:00:01 +0800] "GET /whm-server-status HTTP/1.0" 200 32935
127.0.0.1 - - [24/May/2008:23:01:36 +0800] "GET / HTTP/1.0" 200 3473
58.186.201.58 - - [24/May/2008:23:02:22 +0800] "-" 408 -
203.130.242.48 - - [24/May/2008:23:04:11 +0800] "-" 408 -
203.130.242.48 - - [24/May/2008:23:04:15 +0800] "-" 408 -
127.0.0.1 - - [24/May/2008:23:05:01 +0800] "GET /whm-server-status HTTP/1.0" 200 32548
72.29.95.45 - - [24/May/2008:23:06:13 +0800] "-" 408 -
72.29.95.45 - - [24/May/2008:23:06:13 +0800] "-" 408 -
195.82.99.126 - - [24/May/2008:23:06:43 +0800] "-" 408 -
195.82.99.126 - - [24/May/2008:23:06:49 +0800] "-" 408 -
195.82.99.126 - - [24/May/2008:23:06:54 +0800] "-" 408 -
74.53.197.2 - - [24/May/2008:23:08:16 +0800] "-" 408 -
127.0.0.1 - - [24/May/2008:23:10:01 +0800] "GET /whm-server-status HTTP/1.0" 200 31890
127.0.0.1 - - [24/May/2008:23:10:18 +0800] "GET / HTTP/1.0" 200 3473
208.101.51.84 - - [24/May/2008:23:10:46 +0800] "-" 408 -
62.193.196.250 - - [24/May/2008:23:13:18 +0800] "-" 408 -
62.193.196.250 - - [24/May/2008:23:13:24 +0800] "-" 408 -
62.193.196.250 - - [24/May/2008:23:13:29 +0800] "-" 408 -
127.0.0.1 - - [24/May/2008:23:15:05 +0800] "GET /whm-server-status HTTP/1.0" 200 33145
127.0.0.1 - - [24/May/2008:23:19:08 +0800] "GET / HTTP/1.0" 200 3473
127.0.0.1 - - [24/May/2008:23:20:02 +0800] "GET /whm-server-status HTTP/1.0" 200 32720
67.15.205.17 - - [24/May/2008:23:22:26 +0800] "-" 408 -
127.0.0.1 - - [24/May/2008:23:25:16 +0800] "GET /whm-server-status HTTP/1.0" 200 31203
209.25.195.74 - - [24/May/2008:23:26:21 +0800] "-" 408 -
209.25.195.74 - - [24/May/2008:23:26:24 +0800] "-" 408 -
209.25.195.74 - - [24/May/2008:23:26:27 +0800] "-" 408 -
209.25.195.74 - - [24/May/2008:23:26:29 +0800] "-" 408 -
209.25.195.74 - - [24/May/2008:23:26:33 +0800] "-" 408 -
209.25.195.74 - - [24/May/2008:23:26:36 +0800] "-" 408 -
127.0.0.1 - - [24/May/2008:23:28:05 +0800] "GET / HTTP/1.0" 200 3473

My old logs /usr/local/apache_bacup/logs/access_log record them fine

Quote:

80.191.80.84 - - [18/Jul/2007:04:21:13 +0800] "GET /ss-xs/?action-spacelist-uid-356-type-blog-starttime-1181520000-endtime-1$
80.191.80.84 - - [18/Jul/2007:04:21:53 +0800] "GET /forum/archiver/tid-1303.html HTTP/1.1" 404 -
80.191.80.84 - - [18/Jul/2007:04:22:18 +0800] "GET /forum/archiver/tid-819.html HTTP/1.1" 404 -
80.191.80.84 - - [18/Jul/2007:04:22:37 +0800] "GET /ss-xs/?17/spacelist-blog.html HTTP/1.1" 404 -
80.191.80.84 - - [18/Jul/2007:04:22:44 +0800] "GET /ss-xs/?viewthread-1745.html HTTP/1.1" 404 -
80.191.80.84 - - [18/Jul/2007:04:23:21 +0800] "GET /forum/archiver/tid-2074.html HTTP/1.1" 404 -
80.191.80.84 - - [18/Jul/2007:04:23:29 +0800] "GET /forum/forumdisplay.php?fid=35 HTTP/1.1" 404 -
80.191.80.84 - - [18/Jul/2007:04:23:58 +0800] "GET /forum/archiver/tid-998.html HTTP/1.1" 404 -
80.191.80.84 - - [18/Jul/2007:04:24:02 +0800] "GET /forum/archiver/tid-784.html HTTP/1.1" 404 -
127.0.0.1 - - [18/Jul/2007:04:25:01 +0800] "GET /whm-server-status HTTP/1.0" 200 21150
80.191.80.84 - - [18/Jul/2007:04:25:01 +0800] "GET /forum/archiver/tid-2100-page-1.html HTTP/1.1" 404 -
80.191.80.84 - - [18/Jul/2007:04:25:10 +0800] "GET /forum/archiver/tid-1211-page-3.html HTTP/1.1" 404 -
80.191.80.84 - - [18/Jul/2007:04:25:37 +0800] "GET /forum/archiver/tid-834.html HTTP/1.1" 404 -
127.0.0.1 - - [18/Jul/2007:04:25:40 +0800] "GET / HTTP/1.0" 200 2860
80.191.80.84 - - [18/Jul/2007:04:26:25 +0800] "GET /forum/archiver/tid-623.html HTTP/1.1" 404 -
80.191.80.84 - - [18/Jul/2007:04:26:41 +0800] "GET /forum/archiver/tid-25.html HTTP/1.1" 404 -
80.191.80.84 - - [18/Jul/2007:04:27:18 +0800] "GET /ss-xs/?10/viewspace-18 HTTP/1.1" 404 -
80.191.80.84 - - [18/Jul/2007:04:27:44 +0800] "GET /forum/archiver/tid-802-page-2.html HTTP/1.1" 404 -
80.191.80.84 - - [18/Jul/2007:04:27:48 +0800] "GET /forum/archiver/tid-1802-page-7.html HTTP/1.1" 404 -
80.191.80.84 - - [18/Jul/2007:04:28:15 +0800] "GET /forum/archiver/tid-1569-page-2.html HTTP/1.1" 404 -
80.191.80.84 - - [18/Jul/2007:04:28:31 +0800] "GET /forum/archiver/tid-1133.html HTTP/1.1" 404 -
127.0.0.1 - - [18/Jul/2007:04:30:02 +0800] "GET /whm-server-status HTTP/1.0" 200 21041
80.191.80.84 - - [18/Jul/2007:04:30:19 +0800] "GET /forum/archiver/tid-462-page-1.html HTTP/1.1" 404 -
80.191.80.84 - - [18/Jul/2007:04:30:34 +0800] "GET /forum/archiver/tid-1900.html HTTP/1.1" 404 -
80.191.80.84 - - [18/Jul/2007:04:30:42 +0800] "GET /ss-xs?693 HTTP/1.1" 404 -
80.191.80.84 - - [18/Jul/2007:04:30:46 +0800] "GET /forum/archiver/tid-1501-page-2.html HTTP/1.1" 404 -
80.191.80.84 - - [18/Jul/2007:04:31:48 +0800] "GET /forum/archiver/tid-2055.html HTTP/1.1" 404 -
80.191.80.84 - - [18/Jul/2007:04:31:58 +0800] "GET /forum/archiver/tid-2050-page-2.html HTTP/1.1" 404 -
127.0.0.1 - - [18/Jul/2007:04:34:04 +0800] "GET / HTTP/1.0" 200 2860
80.191.80.84 - - [18/Jul/2007:04:34:32 +0800] "GET /forum/archiver/tid-2019.html HTTP/1.1" 404 -
80.191.80.84 - - [18/Jul/2007:04:34:53 +0800] "GET /forum/archiver/tid-744.html HTTP/1.1" 404 -
80.191.80.84 - - [18/Jul/2007:04:34:59 +0800] "GET /forum/archiver/tid-2135.html HTTP/1.1" 404 -
127.0.0.1 - - [18/Jul/2007:04:35:01 +0800] "GET /whm-server-status HTTP/1.0" 200 21102
80.191.80.84 - - [18/Jul/2007:04:35:11 +0800] "GET /ss-xs/archiver/ HTTP/1.1" 404 -
80.191.80.84 - - [18/Jul/2007:04:36:38 +0800] "GET /forum/archiver/tid-781-page-2.html HTTP/1.1" 404 -
80.191.80.84 - - [18/Jul/2007:04:37:04 +0800] "GET /forum/archiver/tid-1216.html HTTP/1.1" 404 -
80.191.80.84 - - [18/Jul/2007:04:38:09 +0800] "GET /ss-xs/?viewthread-1879.html HTTP/1.1" 404 -
80.191.80.84 - - [18/Jul/2007:04:38:29 +0800] "GET /forum/archiver/tid-275.html HTTP/1.1" 404 -
127.0.0.1 - - [18/Jul/2007:04:40:02 +0800] "GET /whm-server-status HTTP/1.0" 200 21191

how do I make my apache to log the access log in details again?

View 1 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







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