Skip to main content


htaccess mod_rewrite - how to send everything to the default 404

htaccess mod_rewrite - how to send everything to the default 404.
If mod_rewrite is not working we just deny.
I'm open to suggestions (ex. using only the "Redirect" directive).

<IfModule mod_rewrite.c>
RewriteRule   .* - [R=404,L]
<IfModule !mod_rewrite.c>
order deny,allow
deny from all
Recent posts

Dockers and Laravel (etc) .env Google Dork

Google Dork: "DB_PASSWORD" filetype:env

... DB_USERNAME=sanfas93_funds ... Cache | sql injection, account creation

sql injection and account creation
python 34992 -t -u dop -p dop

We can  raise an error to have more info


PDOException: SQLSTATE[22001]: String data, right truncated: 1406 Data too long for column 'field_cap_value' at row 1: INSERT INTO {field_data_field_cap} (entity_type, entity_id, revision_id, bundle, delta, language, field_cap_value, field_cap_format) VALUES (:db_insert_placeholder_0, :db_insert_placeholder_1, :db_insert_placeholder_2, :db_insert_placeholder_3, :db_insert_placeholder_4, :db_insert_placeholder_5, :db_insert_placeholder_6, :db_insert_placeholder_7); Array ( [:db_insert_placeholder_0] => user [:db_insert_placeholder_1] => 140122 [:db_insert_placeholder_2] => 140122 [:db_insert_placeholder_3] => user [:db_insert_placeholder_4] => 0 [:db_insert_placeholder_5] => und [:db_insert_placeholder_6] => "><script>alert(1);</script><" [:db_ins…

[FIX] ERROR 1436 (HY000) Thread stack overrun - mysql 5.7

How to fix Thread stack overrun with mysql 5.7 (and other versions)
Thread stack overrun with mysql 5.7 on Linux and Windows Run the server with
mysqld --thread_stack=256k
to configure my.ini/my.cnf (server.cnf) add:

thread_stack = 256K

Further problems with mysql on windows On 64 bit (windows) probably you will need to give a bigger value
I've been forced to use
thread_stack = 512K on MySQL Ver 5.6.38 for Win64 on x86_64 (MySQL Community Server (GPL))

Generic errors with mysql_upgrade
ERROR 1436 (HY000) at line 1879: Thread stack overrun
ERROR 1436 (HY000) at line 1935

Use 'mysqld --thread_stack=#' to specify a bigger stack

How to log all the queries in mysql or mariadb - windows and linux

Log all your sql queries on mysql server Note: use only on your Test Server and without a lot of workload or connections othewise you are going to fill all your disk space or the IO resources (and even the CPU load to wait for IO writing).

Make sure that your logs folder exists and use the same folder of other mysql logs (ex. /var/log/mysql/)

Add in your my.ini/my.cnf (or server.cnf)

on Windows:
on linux *unix add:

 restart your mysql or mariadb server