audio-circuit.dk schematic downloads has been blocked - diyAudio
Go Back   Home > Forums > General Interest > Everything Else

Everything Else Anything related to audio / video / electronics etc) BUT remember- we have many new forums where your thread may now fit! .... Parts, Equipment & Tools, Construction Tips, Software Tools......

Please consider donating to help us continue to serve you.

Ads on/off / Custom Title / More PMs / More album space / Advanced printing & mass image saving
Reply
 
Thread Tools Search this Thread
Old 11th September 2008, 02:53 PM   #1
diyAudio Member
 
Jan Dupont's Avatar
 
Join Date: Apr 2003
Location: Copenhagen, Denmark
Send a message via MSN to Jan Dupont
Question audio-circuit.dk schematic downloads has been blocked

As some of you may have notised, my www.audio-circuit.dk site has been down. This is due to bandwidth abuse from one or more persons in USA and China, who for the last week or so had their computeres to make endless downloads from my site........ So normal bandwidth has been exceed by far

So that's the thanks you can get for providing a large collection of circuit diagrams and manuals for free download.

I could of course move the site to another hotel provider that could handle that kind of abuse, but it's also a matter of $.... This service is provided for free by me!

Anyone here who has some methods to control downloads limitations? I know I can use captcha's but this requires that the site is converted into php, and frankly I don't have time for this now, as I'm just recovering from a labtop total meltdown, and a network backup harddisc, that won't communicate with the network

All suggestions are welcome, so the free download of schematics and service manuals can be uploaded again.
__________________
Free Schematic and Service Manual downloads www.audio-circuit.dk, Company: www.dupont-audio.com, Joint venture: www.DupontMantra.com
  Reply With Quote
Old 11th September 2008, 03:08 PM   #2
lineup is offline lineup  Sweden
diyAudio Member
 
lineup's Avatar
 
Join Date: Dec 2005
Location: the north
I use PHP
I am one PHp programmer since almost 10 years.
Write some scripts of my own and have shared them as open source.

Using only HTML will not be able to protect.
Some clever JAVASCRIPT may do it. ASP (active server script) works, too.
In short, you need to use some sort of scripting language.

If your website hosting supports PHP
it does not take much to protect your schematics directory.
A few lines to create one Login.

See this little script, I wrote myself and uploaded
to protect my PDF Collection directory:

http://lineupaudio.freehostia.com/pdf/contents.php


this is my code, in contents.php
Quote:
<?php

session_start();
// logout
if (isset($_POST['logout'])) {
unset($_SESSION['passed']);
session_destroy();
header('location: '.$_SERVER['PHP_SELF']);
exit();
}
// login?
$auth = false;
if (isset($_SESSION['passed']) && $_SESSION['passed'] === "dirview")$auth = true;
if (!$auth) {
if (isset($_POST['pass']) &&
md5(trim($_POST['pass'])) === "f5bebcec0bce120c89a3af5f49f24cca") { //the md5 hash
$_SESSION['passed'] = "dirview";
$auth = true;
} elseif (isset($_POST['pass']))
$alert = '<span style="color:red;font-weight:bold">Wrong!</span>';
else $alert = '<span style="color:blue;font-weight:bold">Login!</span>';
}
if ($auth) {
// directory view
$dir = '.';
$br = "<br />\n";
$filelist = '';
$protected = array(
'.', '..',
'index.php',
'contents.php'
);
$dircont = scandir( $dir );
foreach($dircont AS $item ){
$forbidden = in_array($item, $protected);
if(is_file($item) && !$forbidden){
$filelist .= '<a href="'.$item.'" target="_blank">'.$item.'</a>'.$br;
}
}
// Display
echo '<body bgcolor="#dddddd">';
echo "<b><i>Directory Contents</i></b>";
echo '<form style="margin:0" action="" method="POST">
<input style="font-weight:bold" type="submit" name="logout" value="Logout">
</form>';
//echo "<hr>";
//echo realpath($files[0]);
echo "<hr>";
echo "<style>a:link,a:visited{color:blue}a:hover,a:acti ve{color:red}</style>";
echo $filelist;
echo "<hr>";
echo "</body>";
exit();
}
?>
<!-- login form -->
<form action="" method="POST">
<b>Password:</b> <?php echo $alert ?><br>
<input type="password" name="pass"><br>
<input style="font-weight:bold" type="submit" name="subm" value="Login"><br>
</form>
you have to use this script of mine
to generate a MD5 HASH of your chosen password
http://topeurope.freehostia.com/md5generator

right now, i use, of course
password: georgebush
__________________
lineup
  Reply With Quote
Old 11th September 2008, 03:27 PM   #3
diyAudio Member
 
Jan Dupont's Avatar
 
Join Date: Apr 2003
Location: Copenhagen, Denmark
Send a message via MSN to Jan Dupont
Thanks my friend from the North
Where to put the script?
__________________
Free Schematic and Service Manual downloads www.audio-circuit.dk, Company: www.dupont-audio.com, Joint venture: www.DupontMantra.com
  Reply With Quote
Old 11th September 2008, 03:48 PM   #4
diyAudio Member
 
Join Date: Dec 2005
Location: At work
Hi Jan and LineUp,

It's easy to implement that script, or another.
The problem here is that you have to choose from:
- convert all pages to php (easy part) or
- one specific page to access download area.

Starting from here, more two questions:
- a simple password (visible on the site, like captcha) or
- real login with membership database

With this second option, you can also know if one member downloads more than once the same pdf...
  Reply With Quote
Old 11th September 2008, 03:55 PM   #5
diyAudio Member
 
ostripper's Avatar
 
Join Date: May 2008
Location: Albany , NY (smallbany)
As far as someone in the USA downloading each and every one
of your material ,could it be the "googlebot" (66.xx.xx.xx) ?

It did it to me, but since I host myself , I just banned the whole
66.xx range ... problem solved..

It is easy to host yourself, I've served 20,000 plus projects and
datasheets with HFS fileserver to 1200 fellow DIY'ers. (more hits than the DIYaudio
"wiki")

PHP is built in and you can add script to the server engine.
Very reliable, check it out.... OS's datasheet server Feel free to download all ..no limit...OS.
  Reply With Quote
Old 11th September 2008, 03:57 PM   #6
diyAudio Member
 
Jan Dupont's Avatar
 
Join Date: Apr 2003
Location: Copenhagen, Denmark
Send a message via MSN to Jan Dupont
The second option is best, however my time is very limited and not to grand permission to every individual who want's to download... Also this removes the "free" downloads when needed if the person is not already granded access (due to my daytime job I can be offline for days).....
Before the F***** idiots started their raid on my sites, there was app. 2-300 download per day......

The captcha seems the best solution for now....
__________________
Free Schematic and Service Manual downloads www.audio-circuit.dk, Company: www.dupont-audio.com, Joint venture: www.DupontMantra.com
  Reply With Quote
Old 11th September 2008, 03:58 PM   #7
diyAudio Member
 
ostripper's Avatar
 
Join Date: May 2008
Location: Albany , NY (smallbany)
Go ahead look around...don't be shy...
  Reply With Quote
Old 11th September 2008, 04:02 PM   #8
diyAudio Member
 
Jan Dupont's Avatar
 
Join Date: Apr 2003
Location: Copenhagen, Denmark
Send a message via MSN to Jan Dupont
Thanks ostripper
__________________
Free Schematic and Service Manual downloads www.audio-circuit.dk, Company: www.dupont-audio.com, Joint venture: www.DupontMantra.com
  Reply With Quote
Old 11th September 2008, 04:03 PM   #9
diyAudio Member
 
ostripper's Avatar
 
Join Date: May 2008
Location: Albany , NY (smallbany)
BTW, I usually get 1-2 K downloads daily.. mostly from europe..

Server is really simple .. it is used for my service/ DIY use and
Music .. of course ..been running 24/7 for over 2 years now.
not one glitch.
  Reply With Quote
Old 12th September 2008, 02:02 PM   #10
diyAudio Member
 
Jan Dupont's Avatar
 
Join Date: Apr 2003
Location: Copenhagen, Denmark
Send a message via MSN to Jan Dupont
Unhappy Audio-circuit.dk will be down for a longer period

Now it almost seems to be personal....

Even though I removed all download links and deleted the circuits and manuals from the download page, someone has still managed to find something to download and to bring the server to it's knees

I will now make a redeign of the site to prevent this from happening again and maybe find another webhotel.

However my time is very limited, so it can take weeks (even months) before the free schematic and manual services are back.

Sorry all........
__________________
Free Schematic and Service Manual downloads www.audio-circuit.dk, Company: www.dupont-audio.com, Joint venture: www.DupontMantra.com
  Reply With Quote

Reply


Hide this!Advertise here!
Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Schematic download problems at www.audio-circuit.dk Jan Dupont Everything Else 22 27th June 2013 07:15 PM
Ipod or ??? Where to go for downloads? amt Everything Else 18 9th September 2006 02:16 AM
Trouble with downloads Jocko Homo Forum Problems 16 14th November 2004 10:59 PM
perfect place to in for best downloads cruseford Everything Else 3 8th June 2002 08:15 AM


New To Site? Need Help?

All times are GMT. The time now is 06:00 AM.


vBulletin Optimisation provided by vB Optimise (Pro) - vBulletin Mods & Addons Copyright © 2014 DragonByte Technologies Ltd.
Copyright 1999-2014 diyAudio

Content Relevant URLs by vBSEO 3.3.2