audio-circuit.dk schematic downloads has been blocked

Status
This old topic is closed. If you want to reopen this topic, contact a moderator using the "Report Post" button.
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 :devilr:

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 :xeye:

All suggestions are welcome, so the free download of schematics and service manuals can be uploaded again.
 
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
<?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:active{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
 
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...
 
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..:D

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.
 
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....
 
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........
 
Hope it works out well, ACD

In fact, I know it will be good.
Because in Denmark & in Sweden we know Internet and the good solutions.
We have many people that are clever with INTERNET.

Are you going to sign up for http://www.clichehosting.com/
and move your stuff and get one website hosting there?
I may check that web hosting out .. for some future Website.
Looks like they have service för Svenska Kunder, också. (Swedish Custumers)

So far, I have never paid one buck, to get any webspace / website.
But things may change ;)
And they often do.

Regards
Lineup
 
NEVER EVER use clichehosting.com

lineup;

All my websites has earlier been hosted by clichehosting.com...
These are the guys that can't/won't block an IP that is used to abuse the bandwidth limit to my website, and who just close your website without notice, even though the abuse has been going on for a week......

Also one time I registered a domain at clichehosting, paid for webhosting and webhotel only to find out 10 month later that they have never registered the domain, and that some other guy now had the domain....

Now I'm moving all my sites to: www.siteground.com.
More expencive but very good reputation and very professional.

Added:
There are only two webhosters in Denmark with a good reputation; www.scannet.dk and www.surftown.dk
Both more expencive than siteground.com and with much lower discspace and trafic bandwitdh.......
 
What I prefer and would look for
when sign up for one web hosting is that
- The service is located in MY Country
Evenso, I would prefer it to be in my region, my city.
If possible.

And I know several web hosting companies in my own little town.

The reason for this is mainly Laws.
If I would have complains on their service
we have Swedish laws and system of justice
that applies to one business company in Sweden.

If the office is close to where i live,
I even can easily go over to them
and have 'a talk' about things.
:D

Same thing with webshopping.
I prefer to shop at Swedish websites.
And only from those that have a good name, some record,
and I can verify are serious about customers supporting.
 
Some service information to all of you.

I have blocked the access to my site from this website: http://bbs.hifidiy.net powered by CHINANET Guangdong province network, as it was one of the abusers that caused my site to be blocked........

If you live in the Guangdong province and need some files from my website, please send me an email, and I can email you the files you need.
 
Status
This old topic is closed. If you want to reopen this topic, contact a moderator using the "Report Post" button.