473,320 Members | 2,003 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

Make images only available to intranet

Is it possible to hide images from the internet, and only have a image
available for users that are logged into the intranet? I am hoping to
avoid a database-solution as the number of images will be to many for
my database-size.

Looking forward to your reply.

Jun 14 '07 #1
5 1476
You could make a user control and only show that control based on IP
addresses.
So if someone reaches your web site and is within your IP range then show
the control, if they are not then hide the control.

Mike
<ro****@gmail.comwrote in message
news:11**********************@x35g2000prf.googlegr oups.com...
Is it possible to hide images from the internet, and only have a image
available for users that are logged into the intranet? I am hoping to
avoid a database-solution as the number of images will be to many for
my database-size.

Looking forward to your reply.

Jun 14 '07 #2
I am not sure if I understand your solution.
Will this control ensure that an image published at "http://
www.mydomain.com/image.jpg" only be available to users with correct
IP?

If so I believe it might be the solution as I can save the IP
(temporarily) of the users logged on to the intranet, and let them
download the images. Therefore I would appreciate some more info about
"user control".

royend.

Mike skrev:
You could make a user control and only show that control based on IP
addresses.
So if someone reaches your web site and is within your IP range then show
the control, if they are not then hide the control.

Mike
<ro****@gmail.comwrote in message
news:11**********************@x35g2000prf.googlegr oups.com...
Is it possible to hide images from the internet, and only have a image
available for users that are logged into the intranet? I am hoping to
avoid a database-solution as the number of images will be to many for
my database-size.

Looking forward to your reply.
Jun 14 '07 #3
if you have a user control (not the actual image) and put all of your images
in that control you *should* be able to hide it.
so for example if you have a range of IP address 190.0.0.1 to 190.0.0.999
and if anyone accesses your site within that range show the control. If they
are not within that range hide the control. If you want to do it at an image
level then that could more work on your end.

why do you want to hide the images from an internet user though? What if
someone from the office hits the site and wants to see the images? Do you
have the users logging in when they are on the office network or no?
I had to do something similiar to this but with documents.

<ro****@gmail.comwrote in message
news:11**********************@x35g2000prf.googlegr oups.com...
>I am not sure if I understand your solution.
Will this control ensure that an image published at "http://
www.mydomain.com/image.jpg" only be available to users with correct
IP?

If so I believe it might be the solution as I can save the IP
(temporarily) of the users logged on to the intranet, and let them
download the images. Therefore I would appreciate some more info about
"user control".

royend.

Mike skrev:
>You could make a user control and only show that control based on IP
addresses.
So if someone reaches your web site and is within your IP range then show
the control, if they are not then hide the control.

Mike
<ro****@gmail.comwrote in message
news:11**********************@x35g2000prf.googleg roups.com...
Is it possible to hide images from the internet, and only have a image
available for users that are logged into the intranet? I am hoping to
avoid a database-solution as the number of images will be to many for
my database-size.

Looking forward to your reply.

Jun 14 '07 #4
The pictures are private and not meant for public viewing - therefore
I must find a good way to hide them from the public internet. I guess
I will have the same problem with documents in just a while, but for
now my biggest concern is the pictures.

One thing that worries me concerning your solution:
Must the IP-range be predefined?
I do not know what IP the different users have, but I know they will
vary more than the range you suggest. I was hoping I could add
temporarily IP adresses to check if the person is logged at the moment
of the image download.

Thanks for your help so far.
royend.

On 14 Jun, 16:26, "Mike" <M...@community.nospamwrote:
if you have a user control (not the actual image) and put all of your images
in that control you *should* be able to hide it.
so for example if you have a range of IP address 190.0.0.1 to 190.0.0.999
and if anyone accesses your site within that range show the control. If they
are not within that range hide the control. If you want to do it at an image
level then that could more work on your end.

why do you want to hide the images from an internet user though? What if
someone from the office hits the site and wants to see the images? Do you
have the users logging in when they are on the office network or no?

I had to do something similiar to this but with documents.

<roy...@gmail.comwrote in message

news:11**********************@x35g2000prf.googlegr oups.com...
I am not sure if I understand your solution.
Will this control ensure that an image published at "http://
www.mydomain.com/image.jpg" only be available to users with correct
IP?
If so I believe it might be the solution as I can save the IP
(temporarily) of the users logged on to the intranet, and let them
download the images. Therefore I would appreciate some more info about
"user control".
royend.
Mike skrev:
You could make a user control and only show that control based on IP
addresses.
So if someone reaches your web site and is within your IP range then show
the control, if they are not then hide the control.
Mike
<roy...@gmail.comwrote in message
news:11**********************@x35g2000prf.googleg roups.com...
Is it possible to hide images from the internet, and only have a image
available for users that are logged into the intranet? I am hoping to
avoid a database-solution as the number of images will be to many for
my database-size.
Looking forward to your reply.- Skjul sitert tekst -

- Vis sitert tekst -

Jun 15 '07 #5
re:
!The pictures are private and not meant for public viewing - therefore
!I must find a good way to hide them from the public internet.
!I do not know what IP the different users have, but I know they will
!vary more than the range you suggest.

This was answered by Mark a few days ago.

Assuming your network uses the 192.xxx.xxx.xxx range of IP addresses :

private void Page_Load(object sender, System.EventArgs e)
{
if
(!Request.ServerVariables["REMOTE_ADDR"].ToString().StartsWith("192"))
{
Response.Redirect ("/Login/entry_denied.aspx", false);
}
}

If your network uses the 10.xxx.xxx.xxx range, substitute a "10" for the "192".
If the network uses both, use an OR statement to include both starting addresses.

That will only allow IP addresses within your local network to access your files/images.


Juan T. Llibre, asp.net MVP
asp.net faq : http://asp.net.do/faq/
foros de asp.net, en español : http://asp.net.do/foros/
======================================
<ro****@gmail.comwrote in message news:11*********************@m36g2000hse.googlegro ups.com...
The pictures are private and not meant for public viewing - therefore
I must find a good way to hide them from the public internet. I guess
I will have the same problem with documents in just a while, but for
now my biggest concern is the pictures.

One thing that worries me concerning your solution:
Must the IP-range be predefined?
I do not know what IP the different users have, but I know they will
vary more than the range you suggest. I was hoping I could add
temporarily IP adresses to check if the person is logged at the moment
of the image download.

Thanks for your help so far.
royend.

On 14 Jun, 16:26, "Mike" <M...@community.nospamwrote:
>if you have a user control (not the actual image) and put all of your images
in that control you *should* be able to hide it.
so for example if you have a range of IP address 190.0.0.1 to 190.0.0.999
and if anyone accesses your site within that range show the control. If they
are not within that range hide the control. If you want to do it at an image
level then that could more work on your end.

why do you want to hide the images from an internet user though? What if
someone from the office hits the site and wants to see the images? Do you
have the users logging in when they are on the office network or no?

I had to do something similiar to this but with documents.

<roy...@gmail.comwrote in message

news:11**********************@x35g2000prf.googleg roups.com...
>I am not sure if I understand your solution.
Will this control ensure that an image published at "http://
www.mydomain.com/image.jpg" only be available to users with correct
IP?
If so I believe it might be the solution as I can save the IP
(temporarily) of the users logged on to the intranet, and let them
download the images. Therefore I would appreciate some more info about
"user control".
royend.
Mike skrev:
You could make a user control and only show that control based on IP
addresses.
So if someone reaches your web site and is within your IP range then show
the control, if they are not then hide the control.
>Mike
><roy...@gmail.comwrote in message
news:11**********************@x35g2000prf.google groups.com...
Is it possible to hide images from the internet, and only have a image
available for users that are logged into the intranet? I am hoping to
avoid a database-solution as the number of images will be to many for
my database-size.
Looking forward to your reply.- Skjul sitert tekst -

- Vis sitert tekst -


Jun 15 '07 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

12
by: CJM | last post by:
I've had some periodic problems on certain (intranet)servers where IIS seems to be caching thing in an unexpected way, or is server cached pages where new content is expected. The first...
2
by: Dave Griffiths | last post by:
Hi all Very new to JavaScript, I am trying to cache a number of images as the page loads, is there a max number of images or memory usage before the browser stops caching. My PC has 1G ram so...
3
by: John Ortt | last post by:
Hi everyone, I posted with the title "Javascript Menu Not Loading Images" last week but I only posted the code as the site was on a corporate Intranet. Thanks to advice on the thread I have...
2
by: Janna Deegan | last post by:
Hello all, First off, if there is a better place to post for an answer to this question, please feel free to point me there. I have some very strange behavior happening with my System.web.mail...
5
by: viktor9990 | last post by:
I wonder if it is possible to encrypt images(like .tiff or .gif files) in asp.net? How? Any exampel code or url will be appreciated. Thanks
1
by: DrShevek | last post by:
Hi, Apologies if this has been discussed before but I have tried to search and found nothing really helpful as I am not entirely sure exactly what to search for..! Is it possible to detect...
1
by: nazma | last post by:
HI please help me in this project!!!!!!!! In this highly mechanized world this wish system should help people & organizations to show that their caring & loving for others around them. This...
3
by: littleark | last post by:
Hi everybody, I have a typical javascript images preloader, it works fine both on Firefox and on IE in my intranet (local server). It works fine on the Internet (remote server) in IE. In...
4
by: Terry | last post by:
Hi folks. I am about to embark on creating a slideshow using javascript and css. I was wondering what do people consider the best way to preload the images to be used within the show. I saw...
0
by: DolphinDB | last post by:
The formulas of 101 quantitative trading alphas used by WorldQuant were presented in the paper 101 Formulaic Alphas. However, some formulas are complex, leading to challenges in calculation. Take...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.