473,830 Members | 1,963 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Firewall blocks download

Hi

I have a problem with a script that allows a user to download a .exe file.
It works fine for all browsers that I have tried, but only behind certain
firewalls. With Norton, everything looks fine except that the downloaded
file has size zero and has no content. Is there anything I can do (perhaps
with the HTTP headers) to get the whole file through Norton firewalls - I
have included the relevant part of my code below. Note that the firewall
does not block normal downloads of .exe files, but this would be an
unacceptable solution for us.

header("Pragma: public");
header("Expires : 0");
header("Cache-Control: must-revalidate, post-check=0, pre-check=0");
header("Content-type: application/octet-stream");
header("Content-Disposition: attachment; filename=\"inst all.exe\"");
header("Content-Description: File Transfert");
if (@readfile($sws ource)==FALSE) {
header("Content-type: text/html");
header("Content-Disposition: ");
header("Content-Description: ");
die("Download failed(4)");
}

Thanks for any help

Morten Jensen


Jul 17 '05 #1
0 1495

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

Similar topics

1
1745
by: Jochen Rittscher | last post by:
Hallo, ich habe aus der php-faq nachfolgendes Script an meine Bedürfnisse angepasst, den Teil der für Speichern der Downloads zuständig ist habe ich nicht geposted: <? // $download sei der Bezeichner für die zu ladende Datei // etwa: $download = $_GET;
4
1580
by: Dean J. Garrett | last post by:
I have a site which offers documents (.doc, .pdf, etc.) for download. The user clicks on the link and is able to download the file or open it. What if the source location of the document is behind a firewall of a remote server (i.e. not the server running the ASP application)? How can the link be configured in such a way so that security parameters are passed to the firewall to authenticate the access. This must be seamless to the user,...
2
2787
by: Rajesh Kapur | last post by:
Hello, We use Informix and MySQL on linux/unix to drive our web application. SQL*Server is used only for backend enterprise applications within the firewall. I am trying to get the management to use SQL*Server outside the firewall. They tell me there are security issues with Microsoft products, including SQL*Server, that make it vulnerable to attacks outside the firewall. Can someone please point me to white papers/documentation that...
0
4803
by: Timothy Parez | last post by:
Hello, I've seen some front-ends for the windows firewall api (for example: http://www.codeproject.com/internet/drvfltip.asp) but I'm not familiar with C++. Now I wonder if someone can show me some examples/documents/tutorials/... on how to use this api with C# All I want to do is create a small front-end which for example
3
6778
by: Bohus | last post by:
would like to make firewall that checks all outgoing traffic from my computer. This firewall should ask me to allow or deny all outgoing traffic. Is it possible to make such firewall using C# ? If yes, can you give me some starting point where should I go in .NET Framework (namespaces, or MSDN resources, ...) to get started. Thank you.
3
2944
by: Karuppasamy | last post by:
Hi I am trying to use the Logging Module provided by Microsoft Application Blocks for .Net . I installed everything as per the Instructions given in the 'Development Using the Logging Block'. But when i am trying to run the sample, i am getting the following error in the Event Viwer. Kindly help me on this.
1
1840
by: Al Cadalzo | last post by:
I have a web page that allows a user to download data by clicking on a link button. I then use Aspose.Excel (v1.0.3705) to generate the file for download and then I call the "Save" method on the Aspose.Excel object to send it to the Response object. One of our users has Norton Firewall installed and when he tries to download a large amount of data he gets a message ""0 bytes downloaded". It works OK with smaller files. When he disables...
1
1925
by: cagdas.gerede | last post by:
Could anyone suggest some documentations or example implementations on how to implement a firewall for Windows platform that can block based on Mac addresses instead of IP addresses. Appreciated, Thanks Cagdas
1
1521
Frinavale
by: Frinavale | last post by:
Hi there, I'm currently using VB .Net to develop a web application that sends emails periodically. Everything works fine in the test environment but not on the real server. After reviewing the Windows Event log I discovered that our WinSock firewall is preventing my application from sending emails. There is no way to turn off this firewall so I have to work around it. Since the web-app works in the test environment, I'm sure there's a...
0
9642
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,...
1
10526
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
10206
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
9315
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...
1
7746
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6951
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5617
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...
0
5780
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4411
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

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.