Git Product home page Git Product logo

Comments (14)

alxndr-w avatar alxndr-w commented on August 17, 2024 3

@schuer ich habe die Möglichkeit bei ein paar Hostern nicht. Und außerdem die Sorge, dass dabei die Redaxo-htaccess-Datei angefasst wird.

@skerbis @staabm @tyrant88 @olien ich habe das hier mal zusammengestellt, evtl. findet es ja den Weg in die Doku:
redaxo/docs#6

/cc @polarpixel

from tricks.

staabm avatar staabm commented on August 17, 2024 2

mit php alleine kann man auch mit 5 zeilen code ein einfachen http basic auth realisieren:
http://php.net/manual/de/features.http-auth.php

from tricks.

olien avatar olien commented on August 17, 2024

Hm. Früher mit dem XOutPutFilter und aktuell mit out5 :-)

from tricks.

alxndr-w avatar alxndr-w commented on August 17, 2024

Wie sah denn ein Filter dafür aus?

from tricks.

olien avatar olien commented on August 17, 2024

Recht einfach:

https://github.com/FriendsOfREDAXO/out5/blob/master/plugins/wartungsarbeiten/boot.php#L2-L10

from tricks.

tyrant88 avatar tyrant88 commented on August 17, 2024

Wichtig ist nur der "noindex, nofollow" Meta tag. Du musst dich nur vor Google "schützen".

from tricks.

schuer avatar schuer commented on August 17, 2024

Wir machen das in der Tat mittels htpasswd. Dann ist es sicher in jeglicher Hinsicht (Google), und man muss keine zusätzliche Funktionalität integrieren.

from tricks.

alxndr-w avatar alxndr-w commented on August 17, 2024

Ich glaube, dazu mache ich mal in der Doku einen Q&A-Abschnitt auf.

Welches Tool nehmt ihr für htpasswd @schuer?

from tricks.

schuer avatar schuer commented on August 17, 2024

Das wird eigentlich fast immer direkt im Adminbereich des Servers/Hosters konfiguriert.

from tricks.

staabm avatar staabm commented on August 17, 2024

htpasswd hat den nachteil dass es nur mit apache geht und teilweise je nach version auch unterschiedlich notiert werden muss. Ab apache 2.4 beachtet der apache auch von haus aus keine .htaccess dateien mehr.

eine php lösung wäre server unabh. und mit wenig aufwand machtbar. (s.o.)

from tricks.

tyrant88 avatar tyrant88 commented on August 17, 2024

Und wo kommen dann die Passwörter ("unaufwändig") her?

from tricks.

staabm avatar staabm commented on August 17, 2024

Und wo kommen dann die Passwörter ("unaufwändig") her?

z.b. ein backend user oder irgendwo ein fest hinterlegter wert (an der gleichen stelle wo man dann den mechanismus aktiviert/deaktiviert)

from tricks.

skerbis avatar skerbis commented on August 17, 2024

Ich frage im Template schon mal eine Session-Variable ab, deren Wert der Kunde über eine GET-Variable setzt. http://xyz.tld?test=XYZ (Klar, funktioniert natürlich nur jeweils für eine Domain) .
Ist die Session leer, exit(); oder eine Meldung.

<?php session_start();?> 


<?php 
if ($_SESSION['geheim']!='3753xhbu') 
{
$_SESSION['geheim']=rex_get('geheim', 'string');
}

if ($_SESSION['geheim']!='3753xhbu') 
{
// echo 'Hallo Google, nix hier für Dich';
exit();
}

?>

from tricks.

schuer avatar schuer commented on August 17, 2024

Sehr fein, danke @alexplusde!

from tricks.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.