Click here to Skip to main content
15,897,704 members
Home / Discussions / ASP.NET
   

ASP.NET

 
Questionhandler is not getting called in mozilla and safari... [modified] Pin
llibin17-Jun-09 21:32
llibin17-Jun-09 21:32 
AnswerRe: handler is not getting called in mozilla and safari... Pin
Christian Graus17-Jun-09 21:42
protectorChristian Graus17-Jun-09 21:42 
AnswerRe: handler is not getting called in mozilla and safari... Pin
Abhishek Sur17-Jun-09 21:50
professionalAbhishek Sur17-Jun-09 21:50 
Questionhow to prevent direct access to pdf file? Pin
Tridip Bhattacharjee17-Jun-09 20:57
professionalTridip Bhattacharjee17-Jun-09 20:57 
AnswerRe: how to prevent direct access to pdf file? Pin
Vimalsoft(Pty) Ltd17-Jun-09 21:18
professionalVimalsoft(Pty) Ltd17-Jun-09 21:18 
GeneralRe: how to prevent direct access to pdf file? Pin
Abhishek Sur17-Jun-09 21:41
professionalAbhishek Sur17-Jun-09 21:41 
GeneralRe: how to prevent direct access to pdf file? Pin
Vimalsoft(Pty) Ltd17-Jun-09 21:46
professionalVimalsoft(Pty) Ltd17-Jun-09 21:46 
GeneralRe: how to prevent direct access to pdf file? Pin
Greg Chelstowski17-Jun-09 21:48
Greg Chelstowski17-Jun-09 21:48 
On the contrary, Vuyiswa, it is not as simple as you explain.
I have encountered a similar problem before.
I think the original question was: "If a user knows the absolute url to a pdf, how can we prevent them from seeing it?"
Obviously, since the pdf files are most likely kept in a virtual directory of a website, opening them should not be a problem at all (if one knows the virtual directory and the filename).

The way I did it was, I kept the pdf files in a private folder and read them using System.IO, then through the application streamed them and eventually displayed them.

I have tried various things, but the way I did it seemed like the most reasonable thing to do, and, well, secure (hopefully).

var question = (_2b || !(_2b));

GeneralRe: how to prevent direct access to pdf file? Pin
Christian Graus17-Jun-09 21:50
protectorChristian Graus17-Jun-09 21:50 
GeneralRe: how to prevent direct access to pdf file? Pin
Greg Chelstowski17-Jun-09 21:52
Greg Chelstowski17-Jun-09 21:52 
GeneralRe: how to prevent direct access to pdf file? Pin
Vimalsoft(Pty) Ltd17-Jun-09 21:54
professionalVimalsoft(Pty) Ltd17-Jun-09 21:54 
GeneralRe: how to prevent direct access to pdf file? Pin
Abhishek Sur17-Jun-09 22:01
professionalAbhishek Sur17-Jun-09 22:01 
GeneralRe: how to prevent direct access to pdf file? Pin
Vimalsoft(Pty) Ltd17-Jun-09 22:24
professionalVimalsoft(Pty) Ltd17-Jun-09 22:24 
QuestionHtml Encryption due to security reason? Pin
Tridip Bhattacharjee17-Jun-09 20:51
professionalTridip Bhattacharjee17-Jun-09 20:51 
AnswerRe: Html Encryption due to security reason? Pin
Abhishek Sur17-Jun-09 21:37
professionalAbhishek Sur17-Jun-09 21:37 
QuestionHow to put java script.... Pin
igaurav17-Jun-09 20:50
igaurav17-Jun-09 20:50 
AnswerRe: How to put java script.... Pin
Amol-11117-Jun-09 21:31
Amol-11117-Jun-09 21:31 
GeneralRe: How to put java script.... Pin
igaurav17-Jun-09 23:15
igaurav17-Jun-09 23:15 
AnswerRe: How to put java script.... Pin
himanshu256117-Jun-09 21:34
himanshu256117-Jun-09 21:34 
GeneralRe: How to put java script.... Pin
igaurav17-Jun-09 23:19
igaurav17-Jun-09 23:19 
GeneralRe: How to put java script.... Pin
himanshu256117-Jun-09 23:58
himanshu256117-Jun-09 23:58 
GeneralRe: How to put java script.... Pin
igaurav18-Jun-09 0:26
igaurav18-Jun-09 0:26 
AnswerRe: How to put java script.... Pin
httplover18-Jun-09 4:52
httplover18-Jun-09 4:52 
QuestionHighlighting selected menu item with Content Pages Pin
NetQuestions17-Jun-09 20:49
NetQuestions17-Jun-09 20:49 
AnswerRe: Highlighting selected menu item with Content Pages Pin
DoctorMick17-Jun-09 23:14
DoctorMick17-Jun-09 23:14 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.