Entries for: Linux!
<< Back

Sub Categories


Content Security Headers

Views: 549
Created: 2021-10-17 04:21:30
Modified: 2023-09-24 16:14:15

Content Security Header (HSTS) Apache:<br /> Header set Strict-Transport-Security &quot;max-age=31536000; includeSubDomains; preload&quot; Nginx:<br /> add_header Strict-Transport-Security &#39;max-age=31536000; includeSubDomains; preload&#39;; Content Security Policy (CSP) Apache:<br /> Header always set Content-S...

Hide Server Version in Apache & Nginx

Views: 659
Created: 2020-11-19 12:29:03
Modified: 2023-09-20 13:56:52

NGINX 1. Go to the nginx configuration file: nano /etc/nginx/nginx.conf 2. Uncomment this line: server_tokens off; 3. Restart nginx service nginx restart APACHE2 1. Go to your apache2 configuration File: nano /etc/apache2/apache2.conf (for Debian/Ubuntu) nano /etc/httpd/conf/httpd.conf (Centos) 2. Modify the line ServerTokens and ServerSignature as...


Command Line Hints

Views: 714
Created: 2021-03-08 17:22:19
Modified: 2023-09-22 23:55:37

Find a String inside Files<br /> grep -rnw &#39;/path/to/somewhere/&#39; -e &#39;pattern&#39;<br /> <br /> Find File in Folder Structure<br /> find ./ -name card.php Display Linux System Informations<br /> uname Display Kernel Releases Informations<br /> uname -r Display Systems uptime and load av...

Linux make file Immune

Views: 715
Created: 2021-02-13 10:44:11
Modified: 2023-09-24 16:27:10

This unix Command will make a file non-writable. Make non-Writable chattr +i file Make writable again chattr -i file See Status: lsattr file ...

Not Categorized

Debian Source List Example

Views: 666
Created: 2020-11-11 09:19:59
Modified: 2023-09-24 10:45:52

deb buster main deb-src buster main deb buster/updates main deb-src buster/updates main deb buster-updates main deb-src buster-updates main ...

Warning: Array to string conversion in /home/bugfish/public_html/_site/btm/init.php on line 82
Switches: 0 | Arrivals: 0 | Visits: 0
This Website is using Session Cookies for Site Functionality.