There were two steps involved in this process:
- Identify the offender
- Block the offender
Having identified the offender (I had the offender's host name) I had to ban it from the site.
My provider does not give me access to a httpd.conf (I am using shared hosting) so I had to use .htaccess file in the webroot of my site. Below are the steps I followed:
- Create a .htaccess file in the webroot of your site (usually in /httpdocs)
- In the .htaccess file add the following lines:
order allow,denyIn the above replace the values in italics with the actual that you want to ban (tip: to get the ip address you can just ping the hostname and will resolve to the ip address)
deny from hostname.com
deny from xxx.xxx.xxx.xxx
allow from all
Finally save the file and you should be ready.
Δεν υπάρχουν σχόλια:
Δημοσίευση σχολίου