Dave Monroe - Author


BOOKS BY ME - ART BY ME - RANDOM STUFF

*** ETHICAL HACKING - PEN TESTING ***

.htaccess - Tricks


*** NEW ***

MY CAT DOOR CAM


Click the pretty picture below to go back to the main page.


 
 

Dave Monroe - Author
This is a forest
Dave Monroe - Author
 

Ethical Hacking - ,htaccess tricks

Let's begin. This is for educational purposes ONLY. And should only be used on your own
networks or networks you have explicit permission (like from your employer) to access.

These data collection options can and should only be used to discover illegal activities.

This is known as Ethical Hacking or Penetration Testing.

Most of the tools used are already built in to Kali Linux.
These tools including the use of Kali Linux ARE NOT illegal to use
Unless you use them for illegal purposes.

Check the laws of your specific Country, Province, State, and Local area.

Pictures, videos and links provided as is.


First make a webpage with the message you would like to leave for the mortals left living on this little round ball we call Earth. Put it on your website. But remember that you don't want anyone to see it until after you are dead so there are a few things we need to do.

Number one, put it in it's own directory.

For example if the root of your site is in public_html/mysite
Make a new directory like public_html/mysite/newdirectory

Every site should have  robots.txt and sitemap.txt files. if your site does not have them make them and add lines like this to the robots.txt file:

User-agent: *
Disallow: /newdirectory/
Sitemap: http://mysite.com/sitemap.txt

this tells web crawlers or robots not to goto this directory and do not index it on their search engine,

As for the sitemap.txt file, which has nothing to do with our project here, is just a list of files that you definitely want web crawlers to look at and index. And lookis something like this:

http://www.mysite.com
http://www.mysite.com/index.php
http://www.mysite.com/about.htm
http://www.mysite.com/contact.htm


OK... now for the sauce to cover the meat of this project. The .htaccess file.

RewriteEngine on

RewriteCond %{TIME_YEAR}%{TIME_MON}%{TIME_DAY}%{TIME_HOUR} >202005109
RewriteRule ^$ http://mysite.com/newdirectory/filename.htm [R=301,L]

What this does is if it is after May 10th, 2020 at 9am, anyone going to your site will be redirected to the page you made to tell the world goodbye or spill your guts about whatever.

That's it. use your imagination.

Oh... and you will have to change the date if you are alive before the date it sends people to your other page. And keep changing it as long as you are among to mortals of Earth. It is up to you what date you set. You can set it one week ahead, a month, a year, whatever. Just make sure you remember to change it otherwise people will see it while you are still alive and that defeats the purpose.

 

 
Dave Monroe - Author

 © dave monroe 1996-2024