473,320 Members | 1,950 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.

prevent downloading

Dear all

I recognized today that if I have an echo statement on an else at the end of
my script the only thing which was downloaded by wget was this string.

Is this a common way to prevent uncontrolled downoading of php scripts?

The software I wrote is GPL licensed so I would share it as package not as
partial files.
Reimar
--
Forschungszentrum Juelich
email: R.*****@fz-juelich.de
http://www.fz-juelich.de/icg/icg-i/
================================================== ================
a IDL library at ForschungsZentrum Juelich
http://www.fz-juelich.de/icg/icg-i/i...lib_intro.html

Jul 17 '05 #1
1 2303
Reimar Bauer wrote:
Dear all

I recognized today that if I have an echo statement on an else at the end of
my script the only thing which was downloaded by wget was this string.

Is this a common way to prevent uncontrolled downoading of php scripts?

The software I wrote is GPL licensed so I would share it as package not as
partial files.
Reimar


Using wget is the same as wandering to the page in X browser and saving
it to disk. It will only save the parsed data, in the same way that the
user only can view the parsed data. I wouldn't class it as a security
method, rather it is just the way server-side processing works.

However, lets say for example we have test.php, test.php checks for a
session/cookie/posted/get variable each access (the variable would be
passed on while the user is on the site), this is all normal application
logic for your site/web-app:

if(variable is set)
{
carry out normal job
}
else
{
echo 'thou shant spider mine site...';
}

Would prevent something like wget downloading the 'carry out normal job'
parsed data, however I don't think it would be that much of a useful
thing to do, and rather would harm sites who wish to be parsed by the
multitude of search engine robots forever wandering the 'net.

--
Anthony Plunkett
"If we can't play God, who will?"
Jul 17 '05 #2

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

Similar topics

102
by: me | last post by:
How do I prevent the save/print/email/mypictures toolbar from popping up when IE users place their cursor over photos at my website? Thank you in advance for your help. Signed, me
3
by: Brian Kitt | last post by:
I have an animated .gif on my website. It is about 36k. I want this on every page in my site, but it appears that it downloads every time a user loads a page. This will kill dial up users. ...
11
by: moondaddy | last post by:
I have images that I need to prevent the user from doing a right click and selecting "Save Picture As"? How can I do this? -- moondaddy@nospam.com
1
by: VB Programmer | last post by:
My ASP.NET app is referencing an mdb file. How can I prevent hackers/etc... from downloading the mdb (if they know the name/location of it?) Right now they can just go to...
8
monirul arfin
by: monirul arfin | last post by:
Hi all, I want to prevent downloading & installing software in my computer by others. So no one can download or Install software in my computer. Is there any optoin. Please Suggest me. And it is...
1
by: Juerg Beck | last post by:
Hello all I'm completely new to php but a complete newbie when it comes to unix. So please don't laugh about my problem. I have programmed a nice password check with php, javascript and a...
12
by: Queez | last post by:
I have a .NET assembly (ScanControl.dll), which accesses a scanner on my client's local machine and allows them to scan a page (Scan()). I have an ASP.NET web application with a page which will...
2
by: gaurav92K | last post by:
sir, i know that in explorer there is a setting for prevent downloading software but at that time i can'nt remember it . so please tell me about this setting. thanks ...
3
by: Robert Dunlop | last post by:
I am using Microsoft Visual Studio 2005 for development of an ASP.NET site, and I have a problem that greatly effects my workflow at times. It seems that after I upload new files anywhere within...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
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: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
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: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
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....

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.