Wires
Fighting Spam code for htaccess
no stars yet..!
Published on : 04, Wed Sep 2024
Fighting spam is again a hetic job. I am simply putting my works easy.
Fighting spam in a website
no stars yet..!
Published on : 04, Wed Sep 2024
fighting spam in a website is a headache.
Android app for Anushatkti Nagar
no stars yet..!
Published on : 04, Thu Jan 2024
An android app for anushaktinagar
Xpressions by Vasumathy
no stars yet..!
Published on : 26, Sun Nov 2023
This 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
ANN Help Desk
★★★★★5/5 (1 rating)
Published on : 18, Sat Nov 2023
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