I want to save the IP of people who insert certain phrases in the url ,as well as the text they have entered in my database, and then immediately block their IP. I defined forbidden expressions in an array called $blacklist. But the storage is not done properly so I cannot see the phrase entered ..
I’m working on a project in PHP and I want my URLs to look friendly user, so this is what I currently have: www.site.com/index.php?view=1 www.site.com/index.php?view=2&id=21 www.site.com/index.php?view=3&id=88 And this is what I expect to have: www.site.com/teacher www.site.com/student?id=21 www.site.com/book?id=88 Is there any way to to without htaccess, only by using PHP? If don’t, how can I map ..
I am using codeigniter 4 and I have a form with method=get. When i am submit the form, the url would be http://localhost/mywebsite/public/home/price?from=delta&to=duncan How can I convert from that url into this? http://localhost/mywebsite/public/home/price/delta/duncan *if I have to use the post method, I’ll follow Sourc..
I have a Website with 2 pages and therefore I have 2 buttons to switch the page. I want to change the Website only if it´s needed, so for example If I´m using page 1 and I click the button for page 1 it shouldn´t reload. The first step I guess is to check the ..
I am building a simple "quick link" style redirect (I’ll be building an actual HTTP API once I get this done) for my team to use. Essentially, it consists of three parts 1) link.php, which takes URL parameters and sets a bunch more information as well, 2)dump.php, which takes information, puts it in a SQL ..
I want to reach my blog page via a url, telling the blog page the filter, so the filter gets the active state and only posts with this "category" are being displayed. The site I’m talking about is http://schaffmann.de/projekte/. For example I wanna reach posts with the category "Gewerbe", would the URL be something like ..
I need to check whether the SERVER_URL is a test URL or not. So, for example, if the URL consists of dev./localhost/staging, etc. it can be classified as test sites and not live. Can anyone help me with a list of such checks that need to be done to determine if a URL is from ..
I have a simple project with that files structure: image of my structure But my CSS and JS files are not loading… <link rel="stylesheet" href="./css/main.css"> <script src="./js/main.js"></script> Sourc..
Currently, when I select an item from a custom menu in WordPress, it takes me to domain.com/category when I want to be able to change the URL to domain.com/shop/category The link is set here: <h5 class="game-title"><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h5> Here is where I want to redirect the the_permalink() to something such as the_shoplink() ..