LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Security
User Name
Password
Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.

Notices


Reply
  Search this Thread
Old 04-23-2006, 06:05 PM   #1
kitek
Member
 
Registered: Apr 2005
Posts: 252

Rep: Reputation: 15
How to block a proxy from Apache


I have been searching for a way to block someone from accessing my Appache webserver through a proxy. I have a large forum base that I want to prevent banned users from making new accounts or viewing them. Since banning IPs is worthless with proxy servers accessing my server I would think there is a way.


I have Mandrake 9.2 Apache 2.0 with php mysql. Could anyone point me to a guide or help me with blocking proxy servers?

Thanks.
 
Old 04-23-2006, 06:32 PM   #2
puntjuh
Member
 
Registered: Apr 2006
Location: holland
Distribution: Gentoo / debian / suse / mint
Posts: 558

Rep: Reputation: 42
Perhaps use the apache module proxyblock for this.

here is the link into the apache site where proxyblock is explained:

http://httpd.apache.org/docs/1.3/mod...tml#proxyblock
 
Old 04-23-2006, 08:53 PM   #3
kitek
Member
 
Registered: Apr 2005
Posts: 252

Original Poster
Rep: Reputation: 15
Im a big noob to linux computers. I have little work with them. If you could please make me an example for the httpd.conf file for blocking proxy would be great. What I have tried, the server failes to start.
 
Old 04-24-2006, 03:46 AM   #4
puntjuh
Member
 
Registered: Apr 2006
Location: holland
Distribution: Gentoo / debian / suse / mint
Posts: 558

Rep: Reputation: 42
In you're httpd.conf do the following:

Search for this in you're httpd.conf:

#LoadModule proxy_module modules/mod_proxy.so

by default it is shown as shown above. change it into:

LoadModule proxy_module modules/mod_proxy.so


Then in you're VirtualHost block:

<VirtualHost *:80>
ServerAdmin webmaster@dummy-host.example.com
DocumentRoot c:/webserver/www.domain.com
ServerName www.domain.com
ErrorLog logs/dummy-host.example.com-error_log
CustomLog logs/dummy-host.example.com-access_log
ProxyBlock puntjuhdomain.com
</VirtualHost>

Make it look like above.

this will block all proxy's with puntjuhdomain.com .. if you wanna block more domains just add a space and type the next domain. If you wanna ban all proxy's just do this:

ProxyBlock *


good luck
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Squid proxy: block Flash adverts hamish Linux - Software 4 02-13-2012 07:42 AM
block incoming proxy? vicious_pucca Linux - Newbie 5 03-22-2006 06:23 PM
Want to block an ip without proxy shipon_97 Linux - Newbie 2 03-14-2006 03:07 AM
block msn in transparent proxy faraza Linux - Networking 1 01-18-2006 02:45 PM
block access to other proxy servers jymbo Linux - Networking 4 07-06-2004 01:59 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Security

All times are GMT -5. The time now is 10:36 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration