Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
How do I install IP blocking plugin?
Hello,
Someone from China is stealing my art from my website. A friend gave me a plugin to install to block their IP address. I don’t know how to do that since someone else created the site for me and I merely maintain it.
Will someone please:
1. provide me with layman step by step instructions for how to install plugin and how to block the IP addresses
2. Or, do it for me.
Below are the links to the plugins and something about IP addresses. The website they are taking art from is: http://awesomeartbnb.com
http://rahforum.biz/plugins/rah_ip_range
http://textpattern.org/plugins/1088/rah_ip_range
You may email me directly if you prefer. nancymurdoch@live.ca
Thanks,
Nancy
Offline
Re: How do I install IP blocking plugin?
Hi Nancy
the best way is to block the IP in your htaccess. A simple rule like
order allow,deny
deny from 123.45.6.7
deny from 12.34.5.8
allow from all
Another way is to protect hotlinking for all your images
RewriteEngine on
RewriteCond %{HTTP_REFERER} !^$
RewriteCond %{HTTP_REFERER} !^http(s)?://(www\.)?yourdomain.tld [NC]
RewriteRule \.(jpg|jpeg|png|gif)$ - [NC,F,L]
Yiannis
——————————
NeMe | hblack.art | EMAP | A Sea change | Toolkit of Care
I do my best editing after I click on the submit button.
Offline
Re: How do I install IP blocking plugin?
Hi Yiannis,
Thank you.
I don’t understand most of what you said, but I managed to get the IP blocked in my GoDaddy account. Apparently my new C-panel allows for this.
I would love to know how to do the hotlinking for my images. You provided the code but I do not know where to put that code.
Nancy
Offline
Re: How do I install IP blocking plugin?
Hi Nancy
First you need ftp or sftp access to your site. All hosts provide that and they offer instructions on how to do it. Once you connect via (s)ftp you will need to find the root of your site where there should be a file called .htaccess
. Macs by default do not show any files starting with a dot but ftp clients should have an option to make them visible.
basically you need to edit that file where you can add
RewriteEngine on
RewriteCond %{HTTP_REFERER} !^$
RewriteCond %{HTTP_REFERER} !^http(s)?://(www\.)?nancymurdoch.com [NC]
RewriteRule \.(jpg|jpeg|png|gif)$ - [NC,F,L]
somewhere on the top.
Yiannis
——————————
NeMe | hblack.art | EMAP | A Sea change | Toolkit of Care
I do my best editing after I click on the submit button.
Offline