urgent .. images security

She has: 54 posts

Joined: Sep 2001

i m building a website ..in ASP which shows images.. and the site is only for registered user.. so i have to protect those pictuers and images from those culprits which are not registered.. as you know that every body .. uses the folder images.. if any body can guess the images folder and image's name then an unregistred user can also access those pictuers...and this thing i dont want ..

the soloution which are coming in mind are ..

to store the images in the data base and then load them form data base.. but some body told me that they would not be cached...

the other is that i uses the server security whcih is given by the webserver... but how can i implemnt it in the ASP...

n e more ideas .. on the images security.. plz help its very very urgent

"when one door of happiness closes
another opens;but often we look so long
at the closed door that we do not see
which one has opened for us "(Helen Keller)

Suzanne's picture

She has: 5,507 posts

Joined: Feb 2000

logic, no code, sorry...

you would want to set the server to only allow views to those pages/images from your own url as a referrer, and redirect all other calls to the login page.

Smiling Suzanne

She has: 54 posts

Joined: Sep 2001

Hi there

please more allobrate this soloution...

thanks in advance

Mark Hensler's picture

He has: 4,048 posts

Joined: Aug 2000

If your adventurous, you can do it via .htaccess:

RewriteEngine on
RewriteCond %{HTTP_REFERER} !^http://your_domain.com/.*$     [NC]
RewriteCond %{HTTP_REFERER} !^http://www.your_domain.com/.*$ [NC]
RewriteRule .*\.(gif|GIF|jpg|JPG)$ http://your_server.com/leaches.html [R]
'More info here:
http://faq.solutionscripts.com/misc/hot_linking.html

My experience riping images:

I found that a lot of gallery sites have patterns in their image paths, so a while back I created a script that I use from time to time to run through gallery sites. I just setup the patterns, and click Next/Prev. It's fast and easy to use.

My script: maxalbert.com/hidden/blah.php
Here is a gallery rip example. This is 'steeling' the images from art.com. The middle Prev/Next buttons seem to control categories, the right set go through the images in the category. I honestly accidentally picted one with the WTC, but it's a nice image.

I'm evil. Cool

Mark Hensler
If there is no answer on Google, then there is no question.

She has: 54 posts

Joined: Sep 2001

Thanks Mark.....

for all your support and time

thanks again

Want to join the discussion? Create an account or log in if you already have one. Joining is fast, free and painless! We’ll even whisk you back here when you’ve finished.