Skip to content

Instantly share code, notes, and snippets.

# Kill Execution
<Files ~ "\.p(y|yw|yc|yo|yd|yz|l|m|lc|lx|ld|dl|erl)$">
deny from all
</Files>
<Files *.c>
deny from all
</Files>
<Files *.cgi>
deny from all
</Files>
@eoksum
eoksum / busstops.json
Created December 24, 2022 13:58
İSTANBUL İETT DURAK ID, ISIM, ISTIKAMET, ENLEM VE BOYLAM VERILERI JSON (2022)
This file has been truncated, but you can view the full file.
{
"100001": {
"ISIM": "RIFAT ILGAZ CADDESİ",
"ISTIKAMET": "AVCILAR",
"ENLEM": "41.0191700005564",
"BOYLAM": "28.6843529999755"
},
"100002": {
"ISIM": "RIFAT ILGAZ CADDESİ",
"ISTIKAMET": "BOĞAZKÖY",
@eoksum
eoksum / dnsmasq.conf
Last active March 11, 2022 18:43
Dnsmasq simple dns server config
bogus-priv
no-resolv
domain-needed
server=1.1.1.1
server=1.0.0.1
server=8.8.8.8
server=8.8.4.4
expand-hosts
# Add static DNS records to /etc/hosts
@eoksum
eoksum / iptables.sh
Created June 17, 2020 19:46 — forked from einyx/iptables.sh
Anti DDos kernel settings
### 1: Drop invalid packets ###
/sbin/iptables -t mangle -A PREROUTING -m conntrack --ctstate INVALID -j DROP
### 2: Drop TCP packets that are new and are not SYN ###
/sbin/iptables -t mangle -A PREROUTING -p tcp ! --syn -m conntrack --ctstate NEW -j DROP
### 3: Drop SYN packets with suspicious MSS value ###
/sbin/iptables -t mangle -A PREROUTING -p tcp -m conntrack --ctstate NEW -m tcpmss ! --mss 536:65535 -j DROP
### 4: Block packets with bogus TCP flags ###