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.
Related Articles |
---|
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.
This post first appeared on Empire Technology | Technology Updates, Computer Tricks, Social Media, Blogger Tricks, Tech News, Softwares, Internet, Wordpress, Gadgets, Free Downloads ., please read the originial post: here