Welcome to the GoFuckYourself.com - Adult Webmaster Forum forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact us.

Post New Thread Reply

Register GFY Rules Calendar
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >
Discuss what's fucking going on, and which programs are best and worst. One-time "program" announcements from "established" webmasters are allowed.

 
Thread Tools
Old 10-15-2018, 07:38 PM   #1
HairyChick
Slowly dying
 
Industry Role:
Join Date: Sep 2012
Location: Padanaram
Posts: 3,091
Script Coder Needed For Tiny Script

I had a small script years ago and need it again. It’s only a handful of lines so is tiny to me.

Call the php script up in a browser. Fields to fill in are “IP” and “reason” and “time” and “initials” of person banning

Script writes to htaccess file. Bans IP for REASON for TIME. Like 123.45.678.* for LOGIN HACK ATTEMPT for 1440 minutes (1 day) and INITIALS.

Script has numerical list for minute ban choices
60
120
720
1440
10080
302400
99999999 permanent

* wildcards allowed for D and C, never A and on rare occasions, B.

Ideally, I’d like it to email me the results or just “a ban has been added”. I’ll backup htaccess every tine do if a bad code is added, it can be overwritten until the bad code is identified and why error occurred is done. Also, if new file breaks the site, I can upload the old one fast.

As I reread that, I realized a lot of entries wasn’t called up. If it breaks the site or bans everyone, the latter code is easy to find, but the former is line by line. My host will have fits if the script had many entries.

PM or email purple laptop at the g mail place
__________________
*****************************************
Anti-Semites have Small Penis Syndrome. The only known treatment is electroshock therapy combined with cerebellum removal. Fortunately, it’s a tiny procedure.
*****************************************
HairyChick is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 10-16-2018, 12:41 AM   #2
k0nr4d
Confirmed User
 
k0nr4d's Avatar
 
Industry Role:
Join Date: Aug 2006
Location: Poland
Posts: 9,228
I don't know if i'd call that a tiny script - htaccess doesn't on it's own let you block for time periods so you need the whole management to remove the blocks after the time expires.
k0nr4d is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 10-16-2018, 05:19 AM   #3
HairyChick
Slowly dying
 
Industry Role:
Join Date: Sep 2012
Location: Padanaram
Posts: 3,091
I could do it without the time. I’ll clear it weekly
__________________
*****************************************
Anti-Semites have Small Penis Syndrome. The only known treatment is electroshock therapy combined with cerebellum removal. Fortunately, it’s a tiny procedure.
*****************************************
HairyChick is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 10-16-2018, 06:43 AM   #4
Oracle Porn
Affiliate
 
Oracle Porn's Avatar
 
Industry Role:
Join Date: Oct 2002
Location: Icq: 94-399-723
Posts: 24,433
Tiny script = I've got $20 with your name on it

use freelancer or upwork.
__________________


Oracle Porn is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 10-16-2018, 07:49 AM   #5
Klen
 
Klen's Avatar
 
Industry Role:
Join Date: Aug 2006
Location: Little Vienna
Posts: 32,235
No need to use htaccess, you can simply create file with JSON storage and save it by ZEND framework all ip's which you want to ban and then mass include php file with ban code on every file.
Klen is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 10-16-2018, 05:37 PM   #6
HairyChick
Slowly dying
 
Industry Role:
Join Date: Sep 2012
Location: Padanaram
Posts: 3,091
Quote:
Originally Posted by Oracle Porn View Post
Tiny script = I've got $20 with your name on it

use freelancer or upwork.
Tiny script = 5 lines of code which I basically said in my post, a “handful of lines is a tiny script to me” but I guess you had to dumb it down for yourself and others who didn’t understand the meaning was “I don’t have big bucks to spend and it’s not a big script requiring hours of coding.” I hope it’s clearer now. It was clear to the folks who emailed me.

If I wanted a freelancer, I’d have posted there and paid $10. If I want a qualified person who costs more but does it right, I post here. I also try to keep it in our industry and help coders get noticed. No surprises, either. I clearly say it’s a small amount of coding for a small price. I also took out a part of it after it was pointed out that it was easier without it. Thank you, k0nr4d.

KlenTelaris, thank you but I no longer can translate geek speak! Ten years out of coding and amnesia don’t help me though I’ve seen JSON listed here and there. JavaScript something something I assume.

I’ve got a handful of emails to answer about it and believe I found my coder. If not, I’ll, update this post. Thanks to those that responded.
__________________
*****************************************
Anti-Semites have Small Penis Syndrome. The only known treatment is electroshock therapy combined with cerebellum removal. Fortunately, it’s a tiny procedure.
*****************************************
HairyChick is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 10-16-2018, 06:11 PM   #7
sarettah
see you later, I'm gone
 
Industry Role:
Join Date: Oct 2002
Posts: 14,063
8chars..........
__________________
All cookies cleared!
sarettah is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 10-16-2018, 06:19 PM   #8
sarettah
see you later, I'm gone
 
Industry Role:
Join Date: Oct 2002
Posts: 14,063
Quote:
Originally Posted by PamWinterReturns View Post
Tiny script = 5 lines of code which I basically said in my post, a “handful of lines is a tiny script to me”
Your screen to capture the input will be more than 5 lines of code.

.
__________________
All cookies cleared!
sarettah is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Post New Thread Reply
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >

Bookmarks

Tags
script, code, email, bans, entries, line, htaccess, ban, site, breaks, bad, file, tiny, identified, overwritten, laptop, error, occurred, purple, added, backup, i’ll, added”, tine, mail



Advertising inquiries - marketing at gfy dot com

Contact Admin - Advertise - GFY Rules - Top

©2000-, AI Media Network Inc



Powered by vBulletin
Copyright © 2000- Jelsoft Enterprises Limited.