Website being copied? Block any other domains from using my server?

Seems someone has set their domain to use my server. It’s not a mirror, the database and everything works and updates with mine. Is there a way to make it so my server will only respond to requests from my domain? He’s basically stealing my content, and he’s showing up on google instead of me.

I’m using node.

Submit an answer

This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

Sign In or Sign Up to Answer

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.


What’s the contents of

If you’re running specific configuration via a bash script, that may be what’s setting the port, and that may be where we need to look to change it.

Trying to figure out exactly what I did, I had a few issues getting the correct version, but I think this is the last thing I did:

   39  sudo apt-key adv --keyserver hkp:// --recv EA312927
   40  echo "deb xenial/mongodb-org/3.2 multiverse" | sudo tee /etc/apt/sources.list.d/mongodb-org-3.2.list
   41  sudo apt-get update
   42  sudo apt-get install -y mongodb-org
   43  sudo apt-get install -y mongodb-org=3.2.12 mongodb-org-server=3.2.12 mongodb-org-shell=3.2.12 mongodb-org-mongos=3.2.12 mongodb-org-tools=3.2.12
   44  echo "mongodb-org hold" | sudo dpkg --set-selections
   45  echo "mongodb-org-server hold" | sudo dpkg --set-selections
   46  echo "mongodb-org-shell hold" | sudo dpkg --set-selections
   47  echo "mongodb-org-mongos hold" | sudo dpkg --set-selections
   48  echo "mongodb-org-tools hold" | sudo dpkg --set-selections
   49  touch ./lib/systemd/system/mongod.service
   50  mongod --nojournal --dbpath=data
   51  pm2 start --interpreter=bash


I knew I was a little rusty, so the filename is actually mongod.conf. I just spun up a new Droplet and did a quick install of MongoDB 3.4 to confirm.

If the changes you’ve posted are from your the same configuration file, then you definitely shouldn’t see * showing up as that pretty much means MongoDB is listening on which is short for any available IP.

To confirm, I ran the same command on my quick install:

lsof -iTCP -sTCP:LISTEN -P

… which results in:

sshd    1743    root    3u  IPv4  16514      0t0  TCP *:22 (LISTEN)
sshd    1743    root    4u  IPv6  16516      0t0  TCP *:22 (LISTEN)
mongod  4630 mongodb    7u  IPv4  25998      0t0  TCP localhost:27017 (LISTEN)

If you’ve not already, please try running:

service mongod restart

If that doesn’t work, please provide more details on your installation, more specifically how was MongoDB installed?

All I did to install MongoDB (3.4 on Ubuntu 16.04) on my end was run:

sudo apt-key adv --keyserver hkp:// --recv 0C49F3730359A14518585931BC711F9BA15703C6
echo "deb [ arch=amd64,arm64 ] xenial/mongodb-org/3.4 multiverse" | sudo tee /etc/apt/sources.list.d/mongodb-org-3.4.list
sudo apt-get update
sudo apt-get install -y mongodb-org
sudo service mongod start