How to disable directory indexing from apache2 when going to the server’s root?

Edit your apache2 configuration file which normally is on the dir: “/etc/apache2/httpd.conf”. Add the following or edit if your already have some configurations for the default web server dir (/var/www): <Directory /var/www> Options -Indexes AllowOverride All Order allow,deny Allow from all </Directory> This will disable the indexing to all the public directories.

Practical applications of homomorphic encryption algorithms?

Here’s a wild shot in the dark: We’re thinking about protecting the plaintext from the person doing the computation on it. But what if the objective was to protect both the plaintext AND the algorithm? Take, for example, MRI machines. The most expensive part of the MRI machine is the algorithm in which the machine … Read more

WebSockets authentication

If you’re already doing authentication for the non-websocket part of your app, just pass the session cookie along as the first message after connecting and check the cookie as you normally would. WARNING: It’s been pointed out that the following doesn’t work when flashsockets are used: If you’re using socket.io, it’s even easier—the cookies are … Read more

need help understanding nonce

The purpose of a nonce is to make each request unique so that an attacker can’t replay a request in a different context. It doesn’t matter if the attacker gets the nonce: in fact the point is that because the data includes a nonce, it won’t be useful to the attacker. ADDED: A nonce is … Read more

What is cross site scripting?

With cross-site scripting, it’s possible to infect the HTML document produced without causing the web server itself to be infected. An XSS attack uses the server as a vector to present malicious content back to a client, either instantly from the request (a reflected attack), or delayed though storage and retrieval (a stored attack). An … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)