Forum Moderators: coopster
So I plan to prepare a bogus script and the real script.
If the IP that requested the update file is not verified, the server will serve the bogus script. If it is verified, it will serve the real script.
I know you can deny IPs using htaccess. All I need to do is tweak the script so that instead of being denied, a bogus script is served.
And is there any other good alternatives?
Please help me fight this piracy scheme guys.
I worked hard on my script and some people are just not appreciating it.
I love your solution, I would like to combine the 2 actually.
I like the first one because that is what I needed.
The second one is cool because it supports multiple IPs. They dont actually download from a PHP page so the php thing might not work. They download it from SSH using wget.
To have more IPs, do I do this?
RewriteEngine on
RewriteCond %{REMOTE_ADDR} ^111.111.111.111$
RewriteCond %{REMOTE_ADDR} ^222.222.222.222$
RewriteRule ^path/to/real/update/script.php$ /path/to/bogus/script.php [L]
The bogus script will have a hidden code to email me their IPs. ;-)
RewriteEngine on
RewriteCond %{REMOTE_ADDR} ^111.111.111.111$ [OR]
RewriteCond %{REMOTE_ADDR} ^222.222.222.222$ [OR]
RewriteCond %{REMOTE_ADDR} ^333.333.333.333$
RewriteRule ^path/to/real/update/script.php$ /path/to/bogus/script.php [L]
If you want to redirect a whole block, you can do things like this:
Birdman