How do i check to see if my server is running an open proxy?

Posted April 22, 2014 59.7k views
If you have access to the nmap tool, you can check to see if your server is running an open, unsecured HTTP proxy by running the following from a remote location:

sudo nmap -sS -sV -p 8080 --script http-open-proxy.nse X.X.X.X
where X.X.X.X is the IP of your server.


# sudo nmap -sS -sV -p 8080 --script http-open-proxy.nse X.X.X.X

Starting Nmap 6.00 ( ) at 2014-04-22 17:05 UTC

Nmap scan report for (X.X.X.X)

Host is up (0.078s latency).


8080/tcp open http Apache httpd

| http-open-proxy: Potentially OPEN proxy.

|_Methods supported: CONNECTION

If the script returns "Potentially OPEN proxy." you can then check to see if it is a open proxy that does not require authentication with:

http_proxy=http://X.X.X.X:8080/ curl -4 -s

where X.X.X.X is your server's IP address

If you see a message saying "If you are seeing this while running the open proxy text, your server is an open proxy." then you are running an open proxy that anyone in the world can use to connect to any website. This is not a good situation, as it means that cybercriminals and other malicious entities can hide their activities and make it seem like their web connections are originating from your server, and you should secure it right away.If you are running squid, a method of securing your proxy is by using the "acl" feature:

If you are running Apache, this article may help:

If you have any questions, log into the DigitalOcean control panel, click on "Support" and open a support ticket!
  • Why in the world can’t you techy guys “teach” the steps to take, by SHOWING the user where to go, or better yet, PROVIDE THE LINK, It is unnecessariy and useless to provide “jibberish” codes that mean diddly-squit to 99% of computer users…Do you copy and paste etc…WHAT DO YOU ACTUALLY DO AND WHERE DO YOU GO WITH THIS INFORMATION?
    Please come down to our level and make it easier to understand to be able to follow through on your “suggestions”.

  • If you can’t follow this article, you probably shouldn’t be using a host aimed at developers. Quit with the entitlement and accept responsibility for the knowledge you do not have because you can’t be bothered learning it. If you want other people to teach you, I suggest you buy the services of a professional educator or institution such as a university or college.

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Submit an Answer
5 answers

We'd need to know some more information to help you. What is the output of the command shown above (remember to obscure your IP address)?
This link is also handy:
Hi thanks very much for your response. I can't seem to find Tinyproxy installed anywhere. Could this have been done maliciously?

Do you guys offer support in removing this if this is the case? What would be the charge to remove it for me?

Thanks again
How can we solve this issue?

if your looking to see if a webserver supports CONNECT method.. (google HTTP METHODs) that is beyond the scope of this

The title of this is HOW do i see if my server is running open proxy

  • check /var/log/apache2/*.log (tail -f ) watch it for the word CONNECT this only tells u if ppl are trying to use the connect method .

check from a linux box to see if your web server has the CONNECT method enabled.. this app depends on if your running nginx, apache2. by default the CONNECT method is disabled.

quick way to proxy thru a web server . if it has CONNECT enabled
export http_proxy=‘http://[your domain/ip]:80’ ;curl -4 -L -s -v \

If you see an ip.. anything other then your own ip, you have an open relay

verify your own ip with
dig TXT +short | cut -d “"” -f 2

since this is an old thread, no point in going on. if you want more help. reply

dj substance

edited by MattIPv4