Do not use! This tag has multiple meanings depending context. If you are looking for the restrict keyword in C-like languages use [restrict-qualifier] instead.
Questions tagged [restrict]
353 questions
3
votes
2 answers
Granularity of restrict qualifier for overlapping pointers, types
The whole point of restrict is to promise accesses through one pointer don't alias another. That said, there are examples where overlapping memory addresses wouldn't imply aliasing. For example:
int* arr_ptr0 = &arr[0];
int* arr_ptr1 =…

geometrian
- 14,775
- 10
- 56
- 132
3
votes
2 answers
Restrict PHP access to root folders?
Im making sort of a service where people can upload PHP files and they get their own directory.
Is there a way to prevent any way the PHP can access the root of the server? and just stay in the bounderies of its folder?

Joseph
- 33
- 3
3
votes
1 answer
PHP Upload Image formats only?
I have an upload system which will upload files then record in my database. Anyways it works all fine, though how can i make it so that IMAGES only are uploaded and nothing else?
My code:
if($_POST[add]){
$dataType = $_POST["dataType"];
$title =…

user3370962
- 41
- 1
- 1
- 3
3
votes
2 answers
Preventing concurrent access to an object, that gets handed around
Think of a network of nodes (update: 'network of nodes' meaning objects in the same application domain, not a network of independent applications) passing objects to each other (and doing some processing on them). Is there a pattern in C# for…

mvo
- 1,138
- 10
- 18
3
votes
2 answers
Restrict domain to Chrome visitors? Possible?
Is it possible to restrict a domain to only allow visitors using a specific browser?
I'm building an app and it's only been tested in Chrome so far so I only want to allow Chrome users during Beta testing. Basically, I want to white-list browsers…

Andrew
- 2,691
- 6
- 31
- 47
3
votes
1 answer
Restrict iPad to only one application
I am developing an iPad application & I want to keep use only my application in iPad. User is not able to make any changes with Home button too.
I have tried same thing with "Guided Access". But, it will stop push notification also.
I have tried…

iPhone developer.
- 2,122
- 1
- 16
- 17
3
votes
2 answers
Add class code to active admin dashboard
Ok, the exact cause is that I want to restrict new relic to gather data from admin interface, so I need to put:
newrelic_ignore
into the classes that shouldn't add new relic tracker. In resources classes of ActiveAdmin I can use
controller do
…

Uko
- 13,134
- 6
- 58
- 106
3
votes
2 answers
Restricting access if not coming from certain referer(s) PHP
I am racking my brain as to why this isn't working.
What I would like to achieve, is to restrict access to a page on my own Website, only if coming from a certain website, Facebook for instance.
Since a link will be posted on 1 or more Facebook…

Funk Forty Niner
- 74,450
- 15
- 68
- 141
2
votes
3 answers
What's the correct way to hide/prevent access to wp-admin
I'm dealing with this matter since a while, I have read a ton of articles and stuff out there but I couldn't find a place that shows the RIGHT way, standard, correct, whatever you like to call it, to prevent access to my wp-admin or wp-login.php
On…

Jaypee
- 1,272
- 5
- 17
- 37
2
votes
1 answer
Control who uses iOS enterprise app using enterprise distribution provisioning profile?
If I subscribe to the iOS Developer Enterprise Program, and want to restrict use of an app to specific individuals' devices, can I use an enterprise distribution provisioning profile to nominate the allowed device IDs? ... in a similar way to ad-hoc…

BillF
- 444
- 1
- 9
- 15
2
votes
3 answers
Allowing only certain characters in string in vb6
I wanna make only predefined characters to be able to used on my textbox in vb6.
How can i achive that?
Predefined characters will be like 0-9 and A, C, M, E all other characters besides these gonna give a msgbox as err. it can also be a,c,m,e i can…

Berker Yüceer
- 7,026
- 18
- 68
- 102
2
votes
1 answer
Flash player disable download of flv files
We have a video streaming website, and the company decided to make some of the video content paid.
So we built an authenticated area and finalized all the payment issues, and now we are down to the security part.
The videos have a .flv extension,…

zf.
- 123
- 1
- 1
- 10
2
votes
2 answers
How to restrict users from entering a page without being logged on
i used sessions to log a user in so basically the user is stored in a session. what code do i use to stick into my following file so a user cannot access the page unless he/she is logged in.

Jahed
- 75
- 1
- 3
- 13
2
votes
1 answer
Entity Framework Core DeleteBehavior for not to take action
I am using EF Core 6.0. When I delete the parent row, I would like to not take action(remove or setnull foreign key column) child row and remanining child row and foreign key column's value.
I tried NoAction behavior but NoAction is the same with…

Hamza Meniz
- 21
- 1
2
votes
4 answers
How can you restrict user to only input alphabets in Python?
I am a beginner trying to learn Python. First question.
Trying to find a way to ask users to input alphabets only.
Wrote this but it doesn't work!
It returns True and then skips the rest before continuing to the else clause.
break doesn't work…

Zane
- 23
- 2