473,657 Members | 3,041 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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
--
Forschungszentr um Juelich
email: R.*****@fz-juelich.de
http://www.fz-juelich.de/icg/icg-i/
=============== =============== =============== =============== ======
a IDL library at ForschungsZentr um Juelich
http://www.fz-juelich.de/icg/icg-i/i...lib_intro.html

Jul 17 '05 #1
1 2326
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
7350
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
1553
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. Shouldn't I.E. pull this from Cache if it's there? Is there a way for me to set this image to not download on every page, but instead, use if from Temporary Internet Files on the users Cache? Thanks
11
3048
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
1149
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 http://www.mysite.com/MyDb.mdb and save it to their hard drive. Thanks.
8
23572
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 better If any option with Password to prevent. Grettings, Monirul.
1
2220
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 database and it works. But as I have removed the access control with ..htaccess on the server I recognized that everybody can now directly download all documents without a password, as long as they know the filename and location.
12
2576
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 (theoretically) use this control to allow a user to scan a page into my database (Scan.aspx). I serve the control as an object on the page, like so: <object id="scanningObj" height="300px" width="500px"...
2
2472
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
1719
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 the directory structure of the site that is visible to VS, the next time I perform a build VS takes extra time, apparently downloading the new files (though the time required seems much longer than a one-time download should take). During this...
0
8302
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8718
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
8499
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8601
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
7314
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
4150
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
2726
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
1937
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
2
1601
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.