![](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEivD83WAOVkMVz8mF6fhE_vKbkAoeRXrc0hcShUtOJprFqORDJB33F2a1zlFwZsiOQXjH3q3n3AL1gDecC89Khcj5NI9GsOt-JiDzqlUIX9uofPiBOUHSy_udYTBNerFQvSQQwFX3K8XUg/s400/block+users+from+visting+your+blogger.jpg)
Sometimes some people visit your blog and put spam comments to market thier sites or blog, these spam comments are a problem for bloggers. Note that most of these spam comments come from a certain IP address. This can be tracked using a tracker placed in your blog.There is a simple trick / hack to block users by thier IP address from visiting your blog by using JavaScript and PHP .
All you need to block users from visiting your blog:
1. Login into your Blogger Dashboard and choose Edit HTML.
2. Search on <head> tag.
3. Then add the following code at the beginning of your blog's <head> tag.
|
---|
Replace the IP ranges from the above code with the IPs of the visitors you want to keep out of your blog. Example: If you want to block all IPs in the range '11.22.XXX.XXX', simply add "11.22" as the IP number in the above code.
1 comments:
I was looking for this information through other sites but i found this information really helpful for me.
Post a Comment