Posts

htaccess ip lock or denial

 ðŸ§ª How to Test If Apache Sees Your IP Correctly You can confirm your public IP is being seen correctly by Apache: Temporarily add this to .htaccess: apache Copy Edit Require all granted SetEnvIf Remote_Addr ".*" real_ip=$0 Header set X-Your-IP "%{real_ip}e" Then open dev tools in browser → Network tab → look at the response headers from /admin. x-powered-by PHP/5.6.40 x-your-ip 172.68.234.46 :authority www.tanswa.in ✅ Clean & Working .htaccess for IP Whitelist (Apache 2.4+) Here is the correct format for .htaccess in /admin/ to only allow 3 IPs: Require all denied Require ip 49.36.33.84 Require ip 192.227.69.212 Require ip 223.235.16.200

How to Hide Tethering from Your Mobile Operator

TLDR: Use a secure VPN to prevent DPI On your laptop, change packet TTL to 65 (iOS default 64 plus one). ••• On my recent mountain biking trip to France I accidentally booked an Airbnb without WiFi. Bummer. But hey, 5 minutes of googling and I found a perfect eSim provider that offers unlimited data for only €19/week. Who needs slow DSL-based WiFi in the apartment, when you can have 4G everywhere? After placing an order and scanning the QR-code landed in my inbox I was up and running in 30 seconds (gosh I love eSim). SpeedTest showed a strong 65 Mbit/s connection. Perfect. The only problem was - the “personal hotspot” mode didn’t work at all. As it turns out (after reading the small grey text at the bottom of their landing page) the operator does not support data sharing on unlimited plans. Challenge accepted. Let the hacking begin. How do mobile carriers detect "personal hotspot"? In short: by deep packet inspection and TCP/IP stack fingerprinting. And sometimes, your iPhone...

How to whitelist a domain for SpamAssassin

  Introduction The whitelist feature for  SpamAssassin  only allows email addresses to be whitelisted. However, wildcards can be used in an email address, which allows all email addresses at a domain to be whitelisted with a single entry.   Procedure Login to the cPanel account for which the domain will be whitelisted. Open the " Spam Filters " application in the " Email " section. Click the " Show Additional Configurations " button in the " Additional Configurations (For Advanced Users) " section. Click the " Edit Spam Whitelist Settings " button in the " Whitelist (Emails  Always  Allowed) " section. Click the ' +  Add A New "whitelist_from" Item ' button. Enter the wildcard email address for the domain in the empty line. *@domain.tld Click the " Update Whitelist (whitelist_from) " button.

adobe photoshop

 for glow effect use brush  opacity 20% hardness 0 then circle should be big to slowly small How do u paste in the same layer? You can't. Pasting will automatically happen in a new layer. What you could do is paste it, position the content where you want it, then select both layers in the layer palette and merge them (Ctrl-E on PC, Cmd-E on Mac). nah this dude nailed it ( drag it while holding alt)

nagios with php-fpm

/etc/httpd/conf vi httpd.conf IncludeOptional conf.d/*.conf [root@sm56 conf.d]# cat nagios.conf [root@sm56 conf.d]# cat nagios.conf # SAMPLE CONFIG SNIPPETS FOR APACHE WEB SERVER # # This file contains examples of entries that need # to be incorporated into your Apache web server # configuration file.  Customize the paths, etc. as # needed to fit your system. ScriptAlias /nagios/cgi-bin "/usr/local/nagios/sbin" <Directory "/usr/local/nagios/sbin"> <FilesMatch "\.(inc|php|phtml|phps)$">                         <IfVersion = /^2.4.6[012]$/>                                 ProxyFCGISetEnvIf "true" SCRIPT_FILENAME "%{unescape:%{SCRIPT_FILENAME}}"                         </IfVersion>                         A...

roundcube webmail

 [Fri Feb 28 17:48:23.846025 2025] [proxy_fcgi:error] [pid 500474:tid 500676] [remote 59.144.167.12:57129] AH01071: Got error 'PHP message: PHP Fatal error:  Array and string offset access syntax with curly braces is no longer supported in /home/drushtiin/domains/drushti.in/public_html/webmail/functions/strings.php on line 557', referer: https://webmail.drushti.in/roundcube/ [root@sm56 html]# ll total 1068 -rw-r--r--.  1 root root      47 Feb 22 05:15 index.html -rw-r--r--   1 root root 1075759 Feb 26 13:40 named.txt lrwxrwxrwx.  1 root root      21 Feb 22 05:21 phpMyAdmin -> phpMyAdmin-5.2.2-oCp8 drwxr-xr-x. 14 root root    4096 Feb 26 19:31 phpMyAdmin-5.2.2-oCp8 -rwxr-xr-x.  1 root root      68 Feb 22 05:13 redirect.php lrwxrwxrwx   1 root root      19 Feb 27 19:15 roundcube -> roundcubemail-1.6.9 drwxrwxr-x. 13 root root    4096 Feb 27 19:15 roundcubemail...

php was not working

 chmod 755 /home/* permission issue php code was displaying instead of interpreting