Comments (4)
s/past/page/
Original comment by [email protected]
on 25 Oct 2009 at 2:55
from phurl.
Better stating the feature request:
- include an option to make the shortner for private use only, so that only the
registered users can shorten urls, and everyone else can only access the short
version.
For the moment, I have hacked the script to be for private use only by taking
these
steps:
1. Modified .htaccess to: RewriteRule ^([a-zA-Z0-9_-]+)$ index.php?alias=$1 [L]
2. Renamed index.php to secret.php
3. Added at the begining of redirect.php:
if (empty($_GET['alias'])) {
header("Location: http://www.myprefferedsite.com", true, 301);
exit();
}
4. Renamed redirect.php to index.php
Now anyone trying to access the shortner without parameters or with a
non-existent
short url gets redirected to myprefferedsite.com. I can access the shortner by
directly pointing the browser to secret.php
However, this is only security by obscurity and a hack, whereas security by
design
would be preffered.
Original comment by [email protected]
on 26 Oct 2009 at 11:48
from phurl.
Original comment by [email protected]
on 19 Mar 2010 at 4:29
- Changed state: WontFix
from phurl.
Issue 38 has been merged into this issue.
Original comment by [email protected]
on 19 Mar 2010 at 4:30
from phurl.
Related Issues (20)
- v3 3 issues HOT 16
- Forgot phurl password HOT 2
- When I hit shorten button it show 403 Forbidden error HOT 2
- Redirect HTTP 404 error HOT 5
- The URL you have entered is not allowed HOT 3
- Short URL generation cannot open display 404 pages
- The page cannot be found HOT 1
- Admin login does nothing
- HELP... HOT 1
- [deleted issue]
- [deleted issue]
- You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'TYPE = MYISAM' at line 1 HOT 2
- Database structure for generating new code/number seems inefficient with a lot of users HOT 2
- shortened URLS not found HOT 1
- how do you change the favicon? HOT 1
- short url not displayed in address bar
- Page not found
- Blank page to site.com/index.php and /admin/index.php
- How to i run this project in my local host using xamp server
- Short URL not redirected, but goes back to the phurl script HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from phurl.