Wires

Yet another boring Developer's Micro Blogging platform

Wires

Fighting Spam code for htaccess
no stars yet..!
Published on : 04, Wed Sep 2024

Fighting Spam code for htaccessFighting spam is again a hetic job. I am simply putting my works easy.

Read More

Fighting spam in a website
no stars yet..!
Published on : 04, Wed Sep 2024

Fighting spam in a websitefighting spam in a website is a headache.

Read More

Android app for Anushatkti Nagar
no stars yet..!
Published on : 04, Thu Jan 2024

Android app for Anushatkti NagarAn android app for anushaktinagar

Read More

Xpressions by Vasumathy
no stars yet..!
Published on : 26, Sun Nov 2023

Xpressions by VasumathyThis website is made for R Vasumathy to express her views in various topics. As she is very interested in writing articles and I decided to make a platform for her to publish her articles

Read More

ANN Help Desk
5/5 (1 rating)
Published on : 18, Sat Nov 2023

ANN Help DeskA Helpdesk for ANN website has been uploaded

Read More

Fighting Spam code for htaccess

Wire Article Published by thuvalpakshi on 04, Wed Sep 2024
Stars Rating : no stars yet..!
Comments Total : no comments yet..!
Created on : 04, Wed Sep 2024

Hi, after posting a blog regarding fighting spam, I just enilighted with a bright idea of automatic deny in htaccess. For this I must have two files having denied ips and allowed ips. then in htacess a few lines will do the magic

# Block by Deny IP file
<RequireAll>
# Allow IPs from the allow_ips.txt file
<RequireAny>
# Load allowed IPs
Require ip env=allowed_ips
</RequireAny>

# Deny IPs from the deny_ips.txt file
<RequireNone>
# Load denied IPs
Require ip env=denied_ips
</RequireNone>
</RequireAll>

# Include the IP files to define environment variables
Include /path/to/deny_ips.txt
Include /path/to/allow_ips.txt


Comments on this Post

No comments posted yet..! Be the first one to post comment.


Your Comments on this post