diff --git a/var/www/common.php b/var/www/common.php
index f606902..cb90f12 100644
--- a/var/www/common.php
+++ b/var/www/common.php
@@ -14,10 +14,11 @@ const SERVERS=[ //servers and ports we are running on
'hosting.danwin1210.me'=>['sftp'=>22, 'pop3'=>'995', 'imap'=>'993', 'smtp'=>'465']
];
const EMAIL_TO=''; //Send email notifications about new registrations to this address
-const INDEX_MD5S=[ //MD5 sums of index.hosting.html files that should be considdered as unchanged for deletion
+const INDEX_MD5S=[ //MD5 sums of index.hosting.html files that should be considered as unchanged for deletion
'd41d8cd98f00b204e9800998ecf8427e', //empty file
-'7ae7e9bac6be76f00e0d95347111f037', //default file
-'703fac6634bf637f942db8906092d0ab', //new default file
+'7ae7e9bac6be76f00e0d95347111f037', //old default file
+'703fac6634bf637f942db8906092d0ab', //old default file
+'3cf6df544184b2b1831de38fa31f813f', //new default file
'e109a5a44969c2a109aee0ea3565529e', //TOR HTML Site
'31ff0d6a1d280d610a700f3c1ec6d857', //MyHacker test page
];
@@ -66,7 +67,7 @@ const NGINX_DEFAULT = 'server {
listen unix:/var/run/nginx/suspended backlog=4096 proxy_protocol;
add_header Content-Type text/html;
location / {
- return 200 \'
SuspendedThis domain has been suspended due to violation of our hosting rules.\';
+ return 200 \'SuspendedThis domain has been suspended due to violation of our hosting rules.\';
}
}
server {
@@ -188,7 +189,8 @@ function base32_encode(string $input) : string {
return $base32;
}
-function send_captcha() {
+function send_captcha(): void
+{
if(!CAPTCHA || !extension_loaded('gd')){
return;
}
@@ -286,7 +288,7 @@ function send_captcha() {
echo "
Most likely your site makes use of rewriting rules, which are typically located in an .htaccess file or are mentioned in a README file. Just contact me in this case. Also see the previous question.
Can I host a porn site?
Yes as long as your content is legal you may upload adult content.
What is the directory structure for when I connect via sftp?
There are several directories you on the server for your account: Maildir - used to store your mails in (don't touch it) data - You can store application data here that should not be accessible via your site. E.g. configuration or database files. tmp - anything saved here will automatically be deleted after about 24 hours www - this is where you upload your website which becomes then available under your domain. logs - you will find webserver logs here .ssh - by uploading your ssh public key as authorzed_keys in this folder, you can authenticate to sftp using your ssh key, without a password
-
My application is very ressource intensive or I want to host a different service e.g. my own tor relay. Can you get me a VPS?
Yes, if you have special requirements, want a dedicated VPS for your application or just want to anonymously support the TOR network (or other networks) without having to deal with server setup etc. I can offer you a managed VPS hosting. However this will not be for free. It depends on which server you want me to get. For details, contact me
+
My application is very ressource intensive, or I want to host a different service e.g. my own tor relay. Can you get me a VPS?
Yes, if you have special requirements, want a dedicated VPS for your application or just want to anonymously support the TOR network (or other networks) without having to deal with server setup etc. I can offer you a managed VPS hosting. However, this will not be for free. It depends on which server you want me to get. For details, contact me
I want to also publish my site on clearnet. Can you offer a clearnet relay?
Yes, I can offer you a free subdomain on my server, e.g. yoursite.danwin1210.me, which you can configure in your dashboard. Or if you have your own domain you can use that one, point your DNS settings to the IPs given in your dashboard and contact me for setting up an SSL certificate for your domain.
I'm using CloudFlare, but when I open my site, it shows too many redirects.
By default CloudFlare makes unencrypted requests to the backend server, but my server tells any client that wants an insecure connection to upgrade to a secure connection and use https:// instead of http://. CloudFlare just forwards this redirection to the client, which then again asks CloudFlare for the same thing again, but CloudFlare still connects to my server via an insecure http:// connection. To fix this, go to your CloudFlare dashboard and manage your domains settings. Under "Crypto" you can find settings for SSL. Change the setting from Flexible to Full, which makes CloudFlare use a secure https:// connection when talking to my server.
diff --git a/var/www/html/files.php b/var/www/html/files.php
index d164c5a..ee12163 100644
--- a/var/www/html/files.php
+++ b/var/www/html/files.php
@@ -320,8 +320,8 @@ foreach($list as $element){