PDA

View Full Version : Setting up avway to Block an Ip and preventing the stealing of pics?


jelzey
3-9-03, 11:01 AM
Our car club is having the problem of a rival taking pics and ideas off our website and claiming it is as their own. They even put a link up claiming its theirs to our website. They are also emailing people on our guestbook with ill intent. Really really childish and obviously a dumb reason to go to court. Its just a club.

I was hoping somebody could help me with a redirect or website IP block so that anybody coming off that link will get a pop-up and send them somewhere else. Also how do you prevent someone from downloading your pictures. I know of sites you can't right click. An last but not least, how do you block a person's IP from viewing the site at all. I believe this will solve our problem and let our club run in a more mature fashion. I would appreciate the help as I am new to the website stuff. Thanks,

Josh LZ

jelzey
3-9-03, 12:04 PM
OK, I see there are several tutorials on this matter:

.htaccess creation (http://help.powweb.com/tutorials/htaccess/htaccess.php)

Now do I have to create just one or do one for each application(blocking Ip & Anti-Leaching)?

Next question how long does it take for the file to take place?

I put the following in my htdocs folder via ACII thru WS_FTP and it does not work:

RewriteEngine On
RewriteCond %{HTTP_REFERER} !^http://twiztedstlz.com/ [NC]
RewriteCond %{HTTP_REFERER} !^http://www.twiztedstylz.com/ [NC]
RewriteRule [^/]+.(gif|jpg)$ - [F]

I can still download the pictures. I would appreciate the help.

JLZ

jelzey
3-9-03, 12:27 PM
Ok now I added this as my .htaccess file:

RewriteEngine On
RewriteCond %{HTTP_REFERER} !^http://twiztedstylz.com/ [NC]
RewriteCond %{HTTP_REFERER} !^http://www.twiztedstylz.com/ [NC]
RewriteRule [^/]+.(gif|jpg)$ - [F]
RewriteCond %{HTTP_REFERER} ^http://www.google.com/
RewriteRule /* http://www.nice-tits.org/ [R,L]

Does the top part only keep a certain site from leeching or everybody? Also I could not block google and redirect it. Help Please!!!!!!!!!!!!!! Btw the redirect site is not preverted but just a funny site about birds.

JLZ

jelzey
3-10-03, 02:23 PM
Anyone?:cool:

Pig
3-10-03, 04:42 PM
You can prevent them from linking to your site, but not stealing your images. Any image can be lifted off any page with a screen capture utility in just a couple seconds.

The only way to prevent the image from being lifted is to physically (not digitally) watermark it. However, that would probably ruin the images for your use as well.

Jade Dragon
3-11-03, 07:53 AM
You could also try to ban the IP of the user(s) whose doing all this.

http://forum.powweb.com/showthread.php?s=&threadid=613

Jade

jelzey
3-11-03, 06:56 PM
Thanks, I went to the thread. I have the following:
RewriteEngine On
RewriteCond %{HTTP_REFERER} !^http://twiztedstylz.com/ [NC]
RewriteCond %{HTTP_REFERER} !^http://www.twiztedstylz.com/ [NC]
RewriteRule [^/]+.(gif|jpg|bmp)$ - [F]

But it does not work. I assume I am supposed to use my url or am I supposed to use the leeching url? I tried to see if it worked on www.hotlinking.com but it did not. I appreciate the help and thanks for digging up that thread. I am still searching the forums for other threads as I know this is a common topic. Just new to websites making. Again thanks,

JLZ

Jade Dragon
3-12-03, 08:02 AM
I think you'll want to try something like this.

RewriteEngine On
RewriteCond %{HTTP_REFERER} !^http://www.twiztedstylz.com[NC]
RewriteCond %{HTTP_REFERER} !^http://twiztedstylz.com [NC]

RewriteCond %{REQUEST_URI} !^/hotlink.jpg [NC]
RewriteRule [^/]+.(gif|jpg|GIF|JPG)$ http://twiztedstylz.com/hotlink.jpg [R,L]


leave off the trailing backslash. You only need to use caps if you have files in caps which some of yours are. Put this in the /htdocs/ folder.

jelzey
3-12-03, 09:34 AM
Thanks, I got the antileeching to work now. But have another question.

I set up the following to prevent a link:

SetEnvIfNoCase Referer "^http://www.websitenamedenied.com/" BadReferrer
order deny,allow
deny from env=BadReferrer

However when I click on the link from that site it just says you are not authorized to view this page. If you think you should click on my websites link. How do I get a forbidden to just come up without a link to my website or it is kinda pointless?

Also How do I block a persons actual IP from viewing the page? This way they can not harrass people signing the guestbook. Thanks,

JLZ

Jade Dragon
3-12-03, 10:33 AM
Something like this. (quoted from previous thread)

find the IP addy from your logs.

<Limit GET POST>
order allow,deny
deny from .denydomain.com #This will deny access from that host. note there is no "www"
deny from 0.0.0.0 # This will deny a full IP
deny from 0.0.0. # This will deny from that particular subnet.
allow from all #allows everyone else to view your site
</Limit>

Be careful using subnet as may restrict many more users than originally intended.

Let me know if you have troubles with the above code. Haven't had to ban an IP yet.

Jade

jelzey
3-12-03, 11:00 AM
Got everything to work!! Apreciate everybodies help and hopefully I will never run into this problem again. :cool: Again thanks,

JLZ