Skip to content

Instantly share code, notes, and snippets.

@MrityunjaiKumar
Last active December 9, 2016 20:54
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save MrityunjaiKumar/e0a45b30db406181b85d26b73b71f631 to your computer and use it in GitHub Desktop.
Save MrityunjaiKumar/e0a45b30db406181b85d26b73b71f631 to your computer and use it in GitHub Desktop.
cd /var/log/apache2
tail access.log
grep -o 191.96.249.80 acceess.log | wc -l
cd /etc/apache2/sites-available/
sudo nano 000-default.conf #whatever the working config is for that website #by default its 000-default if not added/changed.
<Files xmlrpc.php>
order allow,deny
deny from 191.96.249.80
allow from all
</Files>
sudo reboot now
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment